This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24625 - Relax schema don't have table @border
Summary: Relax schema don't have table @border
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 00:25 UTC by Takeshi Kurosawa
Modified: 2014-02-12 01:35 UTC (History)
1 user (show)

See Also:


Attachments

Description Takeshi Kurosawa 2014-02-12 00:25:38 UTC
After 015c9bcaf2f2 (https://bitbucket.org/validator/syntax/commits/015c9bcaf2f2) was committed, relax schema don't have table @border definition.

Thus Nu Markup Checker reports an error "Attribute border not allowed on element table at this point." for <table border> in addition to "Use CSS instead".

Nu Markup Checker should not report "Attribute border not allowed" and have table @border definition.

Related commit: https://bitbucket.org/validator/syntax/commits/015c9bcaf2f2
Related bug: Bug 23223
Comment 1 Michael[tm] Smith 2014-02-12 01:35:51 UTC
(In reply to Takeshi Kurosawa from comment #0)
> After 015c9bcaf2f2
> (https://bitbucket.org/validator/syntax/commits/015c9bcaf2f2) was committed,
> relax schema don't have table @border definition.

Yeah, that's by design. The definition for @border was moved to the legacy.rnc file, where other legacy markup features are defined.
 
> Thus Nu Markup Checker reports an error "Attribute border not allowed on
> element table at this point." for <table border> in addition to "Use CSS
> instead".

No, as far as I can see, it doesn't:

http://validator.w3.org/nu/?doc=data:text/html;charset=utf-8,data:text/html;charset=utf-8,<!DOCTYPE html><title>test</title><table border></table>

Instead, it says:

Warning: The border attribute on the table element is presentational markup. Consider using CSS instead. For example: table, td, th { border: 1px solid gray }

Are you testing from http://validator.w3.org/nu or are you testing a local instance? If you're testing a local instance, you may need to run "./build/build.py all" a couple times to get the instance. updated correctly.

> Nu Markup Checker should not report "Attribute border not allowed"

It doesn't report "Attribute border not allowed", as far as I can see.

> and have table @border definition.

Dunno what you mean by that. By design, it's not intended to emit any message other than the "Warning: The border attribute on the table element is presentational markup. Consider using CSS instead. For example: table, td, th { border: 1px solid gray }" message.

Is there some other message you want it to emit in addition to that.

> Related commit: https://bitbucket.org/validator/syntax/commits/015c9bcaf2f2

Yeah, I reverted that commit already.

> Related bug: Bug 23223

That bug is about the @sortable attribute and it not really, because I've not implemented @sortable support in the validator yet. There's not really much point in implementing it yet, since no browsers support it yet, and so I'll that I'd have the validator do anyway is to omit a message saying "The sortable attribute is not supported by browsers yet."

Please feel free to re-open this bug if you have more information about the @border problem.