Opened 4 years ago

Last modified 4 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 4 years ago by Jakub Ś

Status: newpending

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).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>xx</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
</head>
<body>
<table border="1.5" cellpadding="1" cellspacing="1" style="width:500px">
	<tbody>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
	</tbody>
</table>
</body>
</html>

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 4 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 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy