Le Blog àGrincheux

ven, 11/06/2010 - 11:46am

Validator - Safari Extension

This is an extension to validate your (X)HTML, CSS and RSS feed with the Unified W3C Validator (Unicorn).

Click here to download the extension.

It displays a badge with the numbers of warnings and errors. On click, a new tab opens with the W3C Validator page.

Todo :

  • validate local pages
  • contextual menu item
  • cache results

By the way, please donate to the W3C (click on the button below)!

I heart Validator

For everyone of you following

For everyone of you following this post, the extension has been updated (check your Extensions preferences in Safari if Auto-update is disabled…).

The extension was kind of banned from the W3C Validator because of the amount of requests (thanks Apple for putting this extension on your site :-) ), but now it's working again, thanks to Ted and Thomas for W3C.

Changes :

  • check mechanism rewritten
  • disabled auto-checks by default, for those who don't use it
  • using the unified validator (Unicorn), so only one request is made instead of three

In the next update, there's should be a caching mechanism that checks the last-modified date of the page, so it won't re-check an old page already checked.

I'm also working on a way to send local pages as well…

Nice extension, some bugs but

Nice extension, some bugs but generally ok.
red. pieniadze.bblog.pl
_________
Pseudo: daltonmccleary
Website: hotels tunisie

Any chance that one could use

Any chance that one could use the option to check against CSS 3 instead of 2.1?

I'm still waiting for answers

I'm still waiting for answers from the W3C to implement new functions… for 3 weeks now. They're not very fast.

Jérôme, Apologies for the

Jérôme,

Apologies for the delay, vacation combined with the mailbox your message filtered into since we hadn't corresponded by email previously. I had checked in again on this blog but not recently. Best would be to contact www-validator@w3.org in the future.

Thanks for the changes you made. I've raised the block limit for traffic matching your plugin. Let's hope enough users upgrade so the traffic stays sane and we can leave the block level where it is or relax it even further. I'm seeing a fair number of clients presumably running the old plugin based on volume of requests by IP.

Cheers,

Ah reading future tense now,

Ah reading future tense now, plugin changes are not rolled out yet as you were looking to leverage Unicorn. Subsequently the alterations to block limit might be a bit early and we have to lower or revert. Following up more via email.

If the problems with the

If the problems with the online W3C Markup Validator still remains, maybe a local installation of the validator is a choice.

http://validator.w3.org/docs/install.html

I think most of the web developer do have a server runs locally. This will also solve the problems with testing local websites.

Regards.

Yes, it's already been done

Yes, it's already been done here : http://zappatic.net/projects/safarivalidator. But I'd really like to make it work without additional installs. Still waiting for answers from W3C…

I know that plugin, but it

I know that plugin, but it stops some websites to work correctly (I think the injected embed tag is the problem). And it is also doesn't looks so nice as your solution ... I love your space saving icons.

Maybe you can create a local version of your plugin using an address like "validator .w3c.localhost"?

I just downloaded your

I just downloaded your extension on my Mac and it did not display correctly. I've got a W3C icon with a black circle on it and a little white cross inside but no HTML, CSS or RSS icon whatever I check or uncheck in the config panel.

I use Safari 5.0.1 on Mac OSX 10.6.4

Do I do something wrong or is it because of an update ?

Thanks for checking. Your extension looks amazing !

Can you tell me which version

Can you tell me which version you're using (you can see it in the Preferences). But unfortunately, W3C has blocked the service from my extension, due to the high number of requests to their website... I'm trying to reach them to fix that as soon as possible.

Too bad... I hope that you

Too bad... I hope that you will find a way to work with W3C. At least, it means that your extension meets a lot of success !

My version is 1.2

Love it! One suggestion: my

Love it! One suggestion: my sites use a bit of server-side programming, so to validate pages I usually have to copy HTML source into a validator (since validator pages aren't authenticated, etc. if they just pull in the address.) A plug-in to the browser seems like the perfect place to automate this. That's my sug, thanks!

Yeah, I know, I need that

Yeah, I know, I need that function as well. I've been working on implementing this trick for some days. Hope I'll manage to do it soon and release a new version :-)

Nice extension, some bugs but

Nice extension, some bugs but generally ok.
red. pieniadze.bblog.pl

You can report bugs here, in

You can report bugs here, in the comments, until I get a better way to report them. Thanks.

I got blocked by W3C because

I got blocked by W3C because of your pluging... This FF plugin https://addons.mozilla.org/fr/firefox/addon/249/ validates locally without hammering W3C servers, maybe try that approach.

Yes, it's happening since

Yes, it's happening since Apple put my extension on their website and got download a lot. Been contacted by W3C about that. Will work on that problem asap.

I did this as a button so I

I did this as a button so I can immediately see the number of errors in the badge. But I'll think about a contextual menu item as well.
--------
machine expresso

Since I started using this

Since I started using this extension I was not able to connect to http://validator.w3.org anymore. After removing the icons from my toolbar and waiting for a day the site allowed me back on. I can only imagine that they temporarily blocked my IP because of the massive amounts of requests I was making.

Has anyone else noticed this?

This is normal, the

This is normal, the validators are banning abusers to maintain the system usable for everyone.

Nice extension and thank you

Nice extension and thank you for your efforts to help promote Valid content on the Web.

Please do not have this extension validate every page a user visits by default as this is taxing on our servers. Please have the user manually elect when they want to Validate a given page and it's related content.

While we certainly can learn from other content developers, maybe you can take this a step further. The people using your extension are seeing how many errors are on many sites other than those they maintain. Perhaps provide a dynamic mailto:webmaster@domain link so they can provide feedback.

The CSS checks should be rate limited, some pages use a hefty number of CSS to render and we are seeing some bursts of CSS checks as a result. We are also seeing sizable bursts of feed validation checks without a URI to check. I guess this might be happening where there is no feed link found on the page being viewed.

Maybe consider a caching option. There is little sense rechecking a website if the HTTP last modified header is older than previous validation results. If a page meta refreshes is this extension called again?

BTW we launched our Unicorn project a couple of days ago http://validator.w3.org/unicorn which aggregates validator results. Like your extension we also like the idea of checking various aspects of a site simultaneously.

Cheers,

Thanks for the comments and

Thanks for the comments and advices. I'll try to resolve all these problems as soon as possible.
What I'm thinking of:
- disabling auto-check by default
- using the Unicorn project to reduce requests
- using caching for non-modified pages
Hope it will prevent further blockings.

This is a promising

This is a promising extension. However, there is one bug that will prevent me from using it. It constantly tries to submit pages that require HTTPAuth.

Nice clean implementation but

Nice clean implementation but sites that have warnings but no errors probably shouldn't get the red badge of doom. And it definitely shouldn't every say "This page is not valid" in the hover-state when there are only warnings.

You're right about the

You're right about the message… some warnings shouldn't mark the page as invalid. And I dream of being able to change the color of the badge, but Apple haven't thought about that. Red is the only choice (for now) :-).

Another option is to make the

Another option is to make the checkmark red if validation fails. Though green upon success would [likely] be too distracting.

Once more, Apple doesn't

Once more, Apple doesn't allow that. Icons can only be in black & white… :-)

There is, of course, the

There is, of course, the option of simply not counting warnings towards the number in the badge. They could still be in hover-message. I've found most warnings to be either benign or just plain silly. For instance, all HTML5 pages get a warning simply because the W3C isn't yet confidant of it's HTML5 Conformance Checker. Another option would be to make including warning user setting like the local page prefix.

If I seem stuck on this, it's because I use HTML5 [almost] exclusively and seeing the badge on every site of mine gives me a moment of panic. Yet all of the other validator extensions take up too much space or use unattractive icons. So I'll keep bugging you about details like this.

You're right. I could add a

You're right. I could add a setting to include the warnings in the badge or not. I'm gonna release an update soon, with CSS and RSS validation as well.

I would love to see this

I would love to see this plugin not as toolbar button but as contextual menu

I did this as a button so I

I did this as a button so I can immediately see the number of errors in the badge. But I'll think about a contextual menu item as well.

How about CSS validation too?

How about CSS validation too?

Good idea… todo.

Good idea… todo.

RSS feeds would be cool too.

RSS feeds would be cool too.

Haven't thought about that…

Haven't thought about that… todo.

Great extension! Btw, your

Great extension! Btw, your site has 24 Errors and 23 warnings ;)

Yeah, noticed that as well.

Yeah, noticed that as well. Corrected :-)

Commentaires récents

Lundi 26 août 2013 - 14:51
Fiché à la TVA de Huy
Frans
Jeudi 3 novembre 2011 - 19:32
Validator - Safari Extension
deettaseverson
Mercredi 14 septembre 2011 - 18:00
Validator - Safari Extension
shadjoseph
Mardi 7 septembre 2010 - 14:32
Validator - Safari Extension
Ted Guild - W3C
Mardi 7 septembre 2010 - 14:11
Validator - Safari Extension
Ted Guild - W3C