- From: <public-html-testsuite@gtalbot.org>
 - Date: Thu, 29 Sep 2011 12:16:38 -0700
 - To: "Public HTML testsuite mailing list" <public-html-testsuite@w3.org>
 
> Hello,
>
>
> http://w3c-test.org/html/tests/approved/xhtml5/img_border_percent.xhtml
border attribute on img is ok (obsolete but conforming) if and only if its
value is the string "0":
{
The presence of a border attribute on an img element if its value is the
string "0".
}
HTML5, september 29th 2011, section 14.1.1 Warnings for obsolete but
conforming features
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#warnings-for-obsolete-but-conforming-features
>
> http://w3c-test.org/html/tests/approved/xhtml5/object_border_perc.xhtml
>
>
> HTML5 img and object elements do not have border as content attribute. In
> HTML4, border on those elements was deprecated and only involved pixel
> value, not percentage.
>
> "
> border = pixels [CN]
>     Deprecated. This attribute specifies the width of an IMG or OBJECT
> border, in pixels. The default value for this attribute depends on the
> user agent.
> "
> http://www.w3.org/TR/html4/struct/objects.html#adef-border-IMG
>
> border on <img> is allowed but discouraged in favor of CSS
> http://dev.w3.org/html5/html4-differences/#changed-attributes
> Nowhere percentage is said to be allowed or optional.
>
>
> Please explain why img_border_percent and object_border_perc testcases are
> valid. Please elaborate on explanations, quotes from spec, etc..
>
> The object_border_perc testcase even uses <div  valing="center"> .
>
"
The following attributes are obsolete (though the elements are still part
of the language), and must not be used by authors:
(...)
border on img elements (except as noted in the previous section)
(...)
border on object elements
"
HTML5, september 29th 2011, section 14.2 Non-conforming features,
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#non-conforming-features
> ---------
>
> http://w3c-test.org/html/tests/approved/xhtml5/object_border_pixel.xhtml
>
>
> border on <object> element no longer exists
> http://dev.w3.org/html5/html4-differences/#absent-attributes
>
> <object> element does not have a border attribute in HTML5:
> http://www.w3.org/TR/html5/the-iframe-element.html#the-object-element
>
> border on <object> element was deprecated in HTML 4.01
> "
> border = pixels [CN]
>     Deprecated. This attribute specifies the width of an IMG or OBJECT
> border, in pixels. The default value for this attribute depends on the
> user agent.
> "
> http://www.w3.org/TR/html4/struct/objects.html#adef-border-IMG
>
> So, the logical question would be how far back should backward
> compatibility go in HTML5?
>
> Please explain why such object_border_pixel testcase is a valid. Please
> elaborate on explanations, quotes from spec, etc..
>
> That testcase even uses <div  valing="center"> .
>
Gérard Talbot
Received on Thursday, 29 September 2011 19:17:08 UTC