|
char attribute April 06, 2011 08:39PM |
Registered: 2 years ago Posts: 17 |
Is the char attribute supported? Or more importantly can it?
The spec shows this as a viable character: http://www.w3.org/TR/html4/struct/tables.html#adef-char and http://www.w3.org/TR/html4/index/attributes.html
Seems Firefox doesn't much like it...I get a "XML Parsing Error: junk after document element"
Used defaults and its strips the attribute. Just wanted to know if its worth trying to support.
<table char="x">
<colgroup char="x">
<col char="x" />
</colgroup>
<tfoot char="x">
<tr>
<td>footer</td>
</tr>
</tfoot>
<thead char="x">
<tr>
<th>header</th>
</tr>
</thead>
<tbody char="x">
<tr char="x">
<td char="x">xx char set xx</td>
</tr>
</tbody>
</table>
|
Re: char attribute April 07, 2011 05:51AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: char attribute April 07, 2011 03:08PM |
Registered: 2 years ago Posts: 17 |
|
Re: char attribute April 07, 2011 03:13PM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: char attribute April 07, 2011 03:34PM |
Registered: 2 years ago Posts: 17 |
|
Re: char attribute April 07, 2011 03:36PM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: char attribute April 07, 2011 03:51PM |
Registered: 2 years ago Posts: 17 |
Actually I don't think its an issue because the DocType I used was XHTML 1.0 Strict, which of course would complain trying to use the "char=" attribute. attrbiute? Right?
Here was what I was testing with: http://bit.ly/gZwsxe
I also played around with the HTML.Allowed values like this:
table[char] colgroup[char] col[char] thead[char] tr[char] td[char] tfoot[char]
and kept getting XTML errors like (table summary, and td "abbr" errors). This doesn't seem to have anything to do with HtmlPurifier just browser (Firefox 3.6.16).
|
Re: char attribute April 07, 2011 04:03PM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: char attribute April 07, 2011 04:11PM |
Registered: 2 years ago Posts: 17 |
|
Re: char attribute April 07, 2011 05:06PM |
Registered: 2 years ago Posts: 17 |
According to the spec http://www.w3.org/TR/html4/sgml/dtd.html#cellhalign
it's still there too...I'll play around with it and let you know if its supported.