[Bug 12413] Handling of <table border=0> is incompatible with the Web

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12413

--- Comment #5 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-04-05 01:39:13 UTC ---
(In reply to comment #4)
> For what it's worth, you can't do the desired thing here with CSS.  Gecko
> implemented a custom pseudo-class called :-moz-table-border-nonzero to match
> tables with a border attribute set.  For example, border=" 0 " needs to be
> treated just like border="0", and there's no way to do that in CSS.

My proposal is that @border should be defined like a normal, enumerated
attribute:

<table border="1"> = border-width:1px; Valid keyword value 
<table border=""  > = border-width:1px; Valid keyword value
<table border="9"> = border-width:1px; Invalid value default
<table border="0"> = border-width:0; Valid keyword value
<table no-border > = border-width:0; Missing value default 

It is pretty obvious that when a style should be derived from an enumerated
attribute, then "you can do the desired thing with CSS", alone.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 5 April 2011 01:39:15 UTC