Re: [w3c/clipboard-apis] supported type should include MathML types (#141)

If I set the content-type in the response to these, it changes the parsing behavior in FF from HTML (creating the host doc, etc), in WebKit/Chromium (Linux) it causes the document to be downloaded instead of displayed. I think some of this is underspecified and not all of these observations should necessarily be the case, but some it'll also change the application of some things, I guess. In FF, if set:

* the parser is xml style/throws on errors (not the case with core on an element in HTML)
* the document root will be `<math>` not generated in a host `<html>` doc, and all that follows from that in terms of different trees (`:root`, `document.documentElement`, etc are diff).
* scripts and styles in tokens will be displayed, and not run
* an `<a href="">` inside a token will work differently - without the mime these are regular HTML links, with them they are MathML links on effectively 'unknown element' (tho there wasn't really IDL for these even until recently with core, but MathML allowed any element to have an href which were really 'somewhat link like') That is, these aren't entirely well specified, or compatible. An example though is attributes like rel/target, etc are not also supported and default tab indexes aren't the same. Probably there is also more on the relation of linked resources.
* There might be more, but that's all I can find/think of atm




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/141#issuecomment-862519013

Received on Wednesday, 16 June 2021 16:20:59 UTC