Re: [w3c/editing] When an 'insertHTML' command should be applied as sibling or child of a <font> element ? (#191)

I'm all for fixing things avoiding pre-HTML5 stuff, but note that this issue is not about the foreColor exec command itself, but about insertHTML. 

The issue here is whether the inserted HTML fragment should be place as child or sibling of the 'font' element. It seems 2 of the main browsers follow each of these behaviors; then, among the ones betting for inserting the HTML as sibling (FF and Edge) there is the interop issue of where to insert the following text; I think continue inserting inline elements as children of the styled element makes more sense so that we can preserve the text style after the insertHTML command.

On the other hand, I think we agree that the ideal solution would be to define new commands that forbids the use of pre-HTML5 and that consider the case I'm describing in this issue. Since none of the main browsers seems to be interoperable, either the spec is not clear about this case or there should be an easy fix, following current spec (even using deprecated elements). 

-- 
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/editing/issues/191#issuecomment-481142864

Received on Tuesday, 9 April 2019 07:52:12 UTC