Bug 80509 - validator plugin needs upload automation
Summary: validator plugin needs upload automation
Status: REPORTED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 21:49 UTC by John Belmonte
Modified: 2008-12-30 11:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Upload automation patch for konqueror validators plugin ( kde-3.4.3 ) (6.65 KB, application/x-tgz)
2005-10-13 22:15 UTC, Michael Aichler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Belmonte 2004-04-27 21:49:45 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Debian testing/unstable Packages

Currently, the validator plugin seems to only direct you to the validator site's upload page if you scheme is "file:".

Rather, for any page your are currently viewing, I'd like to say "Validate this by upload", and the plugin will stage the page in a local file, and then automatically upload it.  Hopefully the web form for uploading is stable.
Comment 1 Gioele Barabucci 2005-04-30 17:45:47 UTC
I would like it too.

This is useful for testing something that is on something like http://localhost:8080
Comment 2 Richard Neill 2005-08-24 03:18:43 UTC
Yes - this is very useful for:

a) When the webpage is dynamic, and we want to validate what the client has just downloaded.

b)When the webpage is http://localhost/foo.php   - in which case, the validator will fail.  [If it is php rather than html, we can't use the file: scheme]
Comment 3 Michael Aichler 2005-10-13 22:12:38 UTC
Hi,

I spent the last few days on implementing this feature and wanted to file a patch when I hit this bug report. So, attached is a tar archive with my patch and the changed source files included.

The patch adds w3c specific validation options to the configuration dialogue ( show source, verbose mode and exclude attributes ) and allows to directly validate local files and webpages which have a local ip ( either "localhost" or "127.0.0.*" as host part ) via a post request.

Note: for the patch to work properly, the upload url in the configuration dialogue must be changed to the form action path, e.g. for w3c: http://validator.w3.org/check ( instead of http://validator.w3.org/file-upload.html )

What do you guys think ?

Cheers,
micha
Comment 4 Michael Aichler 2005-10-13 22:15:22 UTC
Created attachment 12977 [details]
Upload automation patch for konqueror validators plugin ( kde-3.4.3 )
Comment 5 Pino Toscano 2008-12-29 19:24:06 UTC
SVN commit 903013 by pino:

When the current frame can be validated, show a status bar icon with the
validation controls.
When LibTidy is used, integrate the embedded validator and propose an internal
validation of the currently shown document (ie NOT using the online W3
validator, nor any other configured validator). After the check, the status bar
icon is changed into a errors+warnings count. Also add a very simple (at the
moment) view of errors and warnings found.
The look is not the best yet, but it's a start.
CCBUGS: 44272, 80509, 123555


 M  +5 -1      CMakeLists.txt  
 M  +217 -0    plugin_validators.cpp  
 M  +19 -0     plugin_validators.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=903013
Comment 6 Pino Toscano 2008-12-30 11:23:52 UTC
SVN commit 903250 by pino:

Add again the possibility to validate the markup by upload, this time by uploading directly the page content, thus always working.
This hopefully solves the problem of the validation by content with the remote W3 validator.
BUG: 44272
CCBUG: 80509


 M  +43 -1     plugin_validators.cpp  
 M  +4 -0      plugin_validators.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=903250