[whatwg] Presentational safety valves

Henri Sivonen hsivonen at iki.fi
Fri Jan 5 02:15:06 PST 2007

Disclaimer: This is based on reasoning from the spec--not on  
observing implementations.

On Jan 5, 2007, at 01:03, Ian Hickson wrote:

> Sorry for the confusion. By semantics I meant what should happen  
> for DOMs
> like:
>    <p> ... <rp> ... </rp> ... </p>

Presumably a CSS-based ruby-aware UA would have rp { display: none; }  
in the UA style sheet, so the above would display the way
<p> ...  ... </p>
would display.

>    <p> ... <rb> ... <rt> ... </rt> </rb> </p>

This one is hard.

>    <p> ... <ruby> ... </ruby> </p>

Since <ruby> and <rb> don't themselves establish off-baseline text or  
differently sized text, I'd expect that to render the same way as
<p> ...  ...  </p>

>    <p> ... <ruby> ... <rb> ... <rp> ... <rt> ... <rt> </rp> </rb> </ 
> ruby> </p>

Again, this is hard. It seems to me the error handling in this case  
isn't an HTML meaning issue but a CSS formatter issue.

Henri Sivonen
hsivonen at iki.fi

More information about the whatwg mailing list