![]() |
![]() | HTML Validator - Nested elements | ![]() |
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
This is correct. UL can't have H3 nested directly. LI is the only element allowed as child elements of UL.
|
|||||||||||
_________________ The PHP IDE team
|
![]() |
![]() | ![]() |
![]() |
![]() |
Dmitri, thanks so much for the reply, unfortunately, I erred in my previous post, sorry.
This condition happens even with just the <ul> and <li> elements as well. Inserting a <div> in the <th> element also causes the validation warning. I found that if I change the column from a <th> to a <td>, the warning goes away. So this appears to be an issue with the column header element (<th>). I was playing with some formatting and had the <h3> in there and forgot to remove it before posting. Sorry about the confusion, I tried to be succinct. ![]()
|
|||||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
According to the specs you are right. A <ul> is valid inside a <th>, the unordered list falls under the Flow content and is allowed in the <th>. Instead of just writing it in the forums, you should submit it as a bug using the form on this page https://shop.nusphere.com/customer/support.php
W3C Ref: http://www.w3.org/TR/html5/tabular-data.html#the-th-element |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Before I submitted it as a bug, I wanted to see if I was doing anything wrong and also if it could be replicated by others.
Thanks for the response. |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
I can confirm that I have the same problem on version 13.041, 14.020 and 14.039. Inside the <th> it gives a warning, inside a <td> it validates correctly.
(I'm not sure why you would use <ul> in <th> since it's a table header, but the spec allows it and PHPEd should too) |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Hello all,
There was incorrect information in PHPEd's phped.rel configuration file. You can fix it manually by modifying file %APPDATA%\NuSphere\PhpED\config\phped.rel N.B. Each user on the computer has it's own copy of phped.rel, the copy of <PHPEd installation folder>\config\phped.rel First, search line containing "[HTML.TagProps.HTML50]" (without quotes) Below this line find the line starting with "th.Flags=", should be something like (spaces count may vary)
And replace TAGCONTENT5_PHRASING with TAGTYPE5_FLOW. Warning: Apply changes only to the line starting with "th.Flags=" otherwise you may got unexpected warnings like discussed above in thread. Of course, bug in phped.rel will be fixed in further PHPEd releases. |
|||||||||||||
|
![]() |
![]() | HTML Validator - Nested elements | ![]() |
|
||
![]() |
![]() |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
