Coder Social home page Coder Social logo

Comments (5)

AlexJerabek avatar AlexJerabek commented on August 10, 2024

Hi @bogdanst24,

Thanks for reporting this. @exextoc, could you please investigate?

from office-js.

kumarshrey-msft avatar kumarshrey-msft commented on August 10, 2024

@bogdanst24 Thanks for reporting this, it's a known issue that few HTML attributes are sanitized by Outlook Mobile's editor. In the meantime to get unblocked, can you try using CSS properties to achieve the desired style? The allowed HTML attributes and sanitized values of a few are documented here.

from office-js.

bogdanst24 avatar bogdanst24 commented on August 10, 2024

There are known CSS alternatives for cellspacing (using border-collapse:collapse) and cellpadding (using padding:0 on ), but they do not work on Outlook Desktop :(.
A known issue as in a bug already in the backlog, or a known limitation?

from office-js.

kumarshrey-msft avatar kumarshrey-msft commented on August 10, 2024

We have noted your concern regarding CSS alternatives not working on Classic Outlook Desktop and are having internal discussion regarding the best developer experience here. However, the general guidance remains to prefer CSS over HTML attributes to avoid the editor sanitization which might happen across the other clients.

In the meantime, for this immediate issue, can you try using Office.Diagnostics to check for the platform and apply CSS or HTML attributes accordingly?

from office-js.

bogdanst24 avatar bogdanst24 commented on August 10, 2024

We would prefer not to start doing that, as it looks like the rendering engines and in general email client products are continuously changing. Also, there are no official guidelines on what and how to change. Doing it based on findings from the internet and some local testing is not a good thing for an enterprise product.

from office-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.