- From: dolphinling <lists@dolphinling.net>
- Date: Wed, 08 Mar 2006 16:32:52 -0500
Ian Hickson wrote: > On Wed, 8 Mar 2006, dolphinling wrote: > >>Where in the WA1 spec is it described what happens with unknown >>elements? Thanks. > > > "what happens" in what sense? Are they ignored completely, as if they hadn't been typed in the first place? Are they put in the DOM and nothing is done with them? How do they affect things like CSS child selectors? I'm also looking for special cases, like in a <select>. I don't know about other browsers, but Gecko trunk seems to treat <foo1> as an inline in a <div> but ignore it entirely in a <select> and move it outside the table between <table> and <tr> or <tr> and <td> (is that its normal behavior for inlines?). <!DOCTYPE html> <html> <head> <title></title> <style type='text/css'></style> </head> <body> <div> <p>paragraph1</p> <foo1> <p>paragraph2</p> </foo1> <foo2>textinunknown</foo2> </div> <div> <form> <select> <option>option1</option> <foo3> <option>option2</option> </foo3> </select> </form> </div> <table> <tr> <td>x</td> <td>x</td> </tr> <foo4> <tr> <td>x</td> <td>x</td> </tr> </foo4> <tr> <td>x</td> <foo5> <td>x</td> </foo5> </tr> </table> </body> </html> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3E%3C/title%3E%3Cstyle%20type%3D%27text/css%27%3E%3C/style%3E%3C/head%3E%3Cbody%3E%3Cdiv%3E%3Cp%3Eparagraph1%3C/p%3E%3Cfoo1%3E%3Cp%3Eparagraph2%3C/p%3E%3C/foo1%3E%3Cfoo2%3Etextinunknown%3C/foo2%3E%3C/div%3E%3Cdiv%3E%3Cform%3E%3Cselect%3E%3Coption%3Eoption1%3C/option%3E%3Cfoo3%3E%3Coption%3Eoption2%3C/option%3E%3C/foo3%3E%3C/select%3E%3C/form%3E%3C/div%3E%3Ctable%3E%3Ctr%3E%3Ctd%3Ex%3C/td%3E%3Ctd%3Ex%3C/td%3E%3C/tr%3E%3Cfoo4%3E%3Ctr%3E%3Ctd%3Ex%3C/td%3E%3Ctd%3Ex%3C/td%3E%3C/tr%3E%3C/foo4%3E%3Ctr%3E%3Ctd%3Ex%3C/td%3E%3Cfoo5%3E%3Ctd%3Ex%3C/td%3E%3C/foo5%3E%3C/tr%3E%3C/table%3E%3C/body%3E%3C/html%3E (whitespace removed) -- dolphinling <http://dolphinling.net/>
Received on Wednesday, 8 March 2006 13:32:52 UTC