Allasso Travesser | 6 Nov 2011 00:00
Picon

using output=json does not show warnings

Hello,

I am checking pages using the following curl command:

curl -sF 'uploaded_file= <at> test.html;type=text/html' -F output=json  
http://validator.w3.org/check

This is the output I get:

{
     "url": "test.html",
     "messages": [

           {
               "lastLine": 12,
               "lastColumn": 26,
               "message": "end tag for element \"em\" which is not  
open",
               "messageid": "79",
               "explanation": "    <p class=\"helpwanted\">\n      <a 
\n        href=\"feedback.html?uri=;errmsg_id=79#errormsg\"\n\ttitle= 
\"Suggest improvements on this error message through our feedback  
channels\" \n      >&#x2709;</a>\n    </p>\n\n    <div class=\"ve  
mid-79\">\n    <p>\n      The Validator found an end tag for the  
above element, but that element is\n      not currently open. This is  
often caused by a leftover end tag from an\n      element that was  
removed during editing, or by an implicitly closed\n      element (if  
you have an error related to an element being used where it\n      is  
not allowed, this is almost certainly the case). In the latter case 
\n      this error will disappear as soon as you fix the original  
(Continue reading)

Philip TAYLOR | 10 Nov 2011 10:26
Picon
Favicon

Re: Buggy Bug

http://lists.w3.org/Archives/Public/www-validator/2008Oct/0026.html
potentially refers.
--------
G D'Gest wrote:
> I keep getting the following initial report, but find I can remove it my
> revalidating. My pages are not in error so this appears to be a bug to
> me. :-(
> GEST Songs of Newfoundland and Labrador
> http://www.wtv-zone.com/phyrst/audio/nfld/
> <http://www.wtv-zone..com/phyrst/audio/nfld/>
>
>    1. /Line 1, Column 1/: end of document in prolog
>    2. |*<*!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"|
>    3.
>       ✉
>       <http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.wtv-zone.com%2Fphyrst%2Faudio%2Fnfld%2Fstor.htm;errmsg_id=47#errormsg>
>
>    4.
>       This error may appear when the validator receives an empty
>       document. Please make sure that the document you are uploading is
>       not empty, and report <http://validator.w3.org/feedback.html> any
>       discrepancy.
>

Jukka K. Korpela | 10 Nov 2011 10:55
Picon
Picon

Re: Buggy Bug

11/10/2011 11:26 AM, Philip TAYLOR wrote:

> http://lists.w3.org/Archives/Public/www-validator/2008Oct/0026.html
> potentially refers.
> --------
> G D'Gest wrote:
[...]
>> http://www.wtv-zone.com/phyrst/audio/nfld/
>> <http://www.wtv-zone..com/phyrst/audio/nfld/>
>>
>> 1. /Line 1, Column 1/: end of document in prolog
>> 2. |*<*!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"|

Whatever the situation may have been on October 29 when the original 
message was sent, the page specified now validates - though, 
interestingly, "as XHTML 1.0 Frameset", and it indeed carries such a 
DOCTYPE declaration (not Transitional).

Yucca

Ville Skyttä | 10 Nov 2011 18:46
Picon
Picon
Favicon

Re: Buggy Bug

On 11/10/2011 11:55 AM, Jukka K. Korpela wrote:

>>> 1. /Line 1, Column 1/: end of document in prolog
>>> 2. |*<*!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"|
> 
> Whatever the situation may have been on October 29 when the original 
> message was sent, the page specified now validates

AFAIU this was a transient issue caused by lack of disk space on one of
the validator servers.

mc | 10 Nov 2011 20:34
Picon

[VE][31] Add Subject Here

The validator said TEXT in the <style> element is not a reserved word and quit.

 

<style type="text/css">

Error [31]: "X is not a reserved name"
NOTE: Whenever possible, give the address of the document you were checking.

brothercake | 14 Nov 2011 02:31
Favicon

[VE][html5] Incorrect error message for ARIA role menuitem validation

Hi,

I can't give a public URI for this example, as I was testing a local  
page.  But the markup in question looked like this:

	<ul role="menubar">
		<li role="menuitem"><strong>Home</strong></li>
		<li role="menuitem"><a href="#">Portfolio</a></li>
		<li role="menuitem"><a href="#">Stuff</a></li>
		<li role="menuitem"><a href="#">About</a></li>
		<li role="menuitem"><a href="#">Contact</a></li>
	</ul>

The validator flagged multiple errors for that markup, each with the  
error message "An element with role=menuitem requires role=menu on the  
parent"

However that is not correct -- an element with role=menuitem can have  
either "menu" or "menubar" as its parent role.

thanks,

James Edwards

Michael[tm] Smith | 14 Nov 2011 11:41
Picon
Favicon
Gravatar

Re: [VE][html5] Incorrect error message for ARIA role menuitem validation

Thanks for reporting this. I think I have it fixed now.

  --Mike

brothercake <cake <at> brothercake.com>, 2011-11-14 01:31 +0000:

> Hi,
> 
> I can't give a public URI for this example, as I was testing a local page.
> But the markup in question looked like this:
> 
> 	<ul role="menubar">
> 		<li role="menuitem"><strong>Home</strong></li>
> 		<li role="menuitem"><a href="#">Portfolio</a></li>
> 		<li role="menuitem"><a href="#">Stuff</a></li>
> 		<li role="menuitem"><a href="#">About</a></li>
> 		<li role="menuitem"><a href="#">Contact</a></li>
> 	</ul>
> 
> The validator flagged multiple errors for that markup, each with the error
> message "An element with role=menuitem requires role=menu on the parent"
> 
> However that is not correct -- an element with role=menuitem can have either
> "menu" or "menubar" as its parent role.
> 
> 
> 
> thanks,
> 
> James Edwards

--

-- 
Michael[tm] Smith
http://people.w3.org/mike/+

Aneka Diskusi | 16 Nov 2011 15:26
Picon

[VE][247] Add Subject Here

 

Validating http://www.alathitunguang.com/
Error [247]: "NET-enabling start-tag requires SHORTTAG YES"
Philip TAYLOR | 16 Nov 2011 17:08
Picon
Favicon

Re: [VE][247] Add Subject Here


Aneka Diskusi wrote:
>
> Validating http://www.alathitunguang.com/
> Error [247]: "NET-enabling start-tag requires SHORTTAG YES"

> Warning Line 61, Column 68: NET-enabling start-tag requires SHORTTAG YES
>
> <img src="pic1.jpg" width="200" height="200" alt="alathitunguang1" />

In other words, don't use "/>" to close <img> tags in HTML 4.01 
Transitional.

Philip Taylor

Leif Halvard Silli | 16 Nov 2011 17:16
Picon

Re: [VE][247] Add Subject Here

Philip TAYLOR, Wed, 16 Nov 2011 16:08:28 +0000:
> Aneka Diskusi wrote:
>> 
>> Validating http://www.alathitunguang.com/
>> Error [247]: "NET-enabling start-tag requires SHORTTAG YES"
> 
>> Warning Line 61, Column 68: NET-enabling start-tag requires SHORTTAG YES
>> 
>> <img src="pic1.jpg" width="200" height="200" alt="alathitunguang1" />
> 
> In other words, don't use "/>" to close <img> tags in HTML 4.01 
> Transitional.

My reading of the facts, puts the blame on the validator: It would not 
matter very much if the HTML4 validator had stopped issuing that 
warning. Especially now that HTML5 allows the use of "/>" to close 
<img> tags. But even per HTML4's rules,  it is only a warning and not 
an error. 
--

-- 
Leif H Silli


Gmane