Say we have this markup:
<ul> <li> <span></span> </li> </ul>
Reading the specifications for ul , we have:
Content Model : Zero or more li and script -supporting elements.
And the semantics section for the Content model says (emphasize mine):
Content ModelA normative description of what content should be included aschildren and descendants of an element.
Of course, I think about it wrong, but I can not get them to calculate. Because span is not part of "Zero or more li elements" and is a descendant of ul.
: " , ". , .
, .
. . , , HTML .., :
" " .
, 3.2.3 , . , 3.2.4 , : " , , : . HTML , , . - DOM, , ".
, , ( ) , . , , node (, , ).
, a ul li script . li , . ; <ul></ul> HTML5.
ul
li
script
<ul></ul>
Source: https://habr.com/ru/post/1528810/More articles:javascript scope offset - javascriptGive the parent div the width of its floating content - htmlRapidfire and Devise and Rake Routes - ruby ââ| fooobar.comUsing a collector in a primitive stream - javaRapidfire and development - ruby ââ| fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1528811/gravity-forms-total-field-not-working-in-wordpress-pages&usg=ALkJrhjB_qZu4V9GvzmRnmLtVpt5Pzz17wAndroid and SurfaceView. Wrong size - androidStore different versions of images in different places with Carrierwave - ruby-on-railsCreating a noisy voice wave such as animation in a canvas - javascriptExporting an ASM Function from a DLL - Visual Studio C ++ - c ++All Articles