Opened 11 years ago
Last modified 11 years ago
#11017 confirmed Bug
Table border value should only allow integers
Reported by: | Lynne Kues | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Tables | Version: | 3.6.6 |
Keywords: | IBM | Cc: |
Description
Create a table. Specify table properties. Enter a border value. Floats are allowed, but XHTML indicates table border must be integer value. This causes our XHTML validation to fail.
<xsd:simpleType name="Pixels">
<xsd:annotation>
<xsd:documentation> integer representing length in pixels </xsd:documentation>
</xsd:annotation> <xsd:restriction base="xsd:nonNegativeInteger"/>
</xsd:simpleType> ...
<xsd:element name="table">
.....
<xsd:attribute name="border" type="Pixels"/>
....
</xsd:element>
Change History (2)
comment:1 Changed 11 years ago by
Status: | new → pending |
---|
comment:2 Changed 11 years ago by
Status: | pending → confirmed |
---|
XHTML 1.0 Strict indeed does not allow floats in border. The validator is incomplete.
HTML5 does not allow other values than 1 or empty.
I have tried to validate sample document in http://validator.w3.org. Using 1.5 or 1.5px doesn't seem to cause any validation problems. I also haven't found anything in spec that says you can’t use 1.5 for example (Perhaps i haven't looked well enough).
Could you tell me what have I missed? Could you provide more details here?
NOTE: If this is happening in your internal validator only then I don't think this is good idea to require us adjusting open source software to your product (CKEditor is used by many users with different needs). I think in this particular case this should be the other way around.