Opened 10 years ago

Last modified 10 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:


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: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"/>



Change History (2)

comment:1 Changed 10 years ago by Jakub Ś

Status: newpending

I have tried to validate sample document in 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).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="">
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<table border="1.5" cellpadding="1" cellspacing="1" style="width:500px">

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.

comment:2 Changed 10 years ago by Piotrek Koszuliński

Status: pendingconfirmed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy