You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On page that are served with MIME type 'application/xhtml+xml', the 'View Report' link doesn't work. Tested with Firefox 16.0.1 and URI http://www.opvallendeplanten.nl/
When IE8 is used, the same page is served with MIME type 'text/html'. In that case, the 'View Report' link does work.
PS:
In Firefox, HTML_CodeSniffer reports 6 errors, 33 warnings and 72 notices.
In IE8, HTML_CodeSniffer reports 7 errors, 34 warnings and 69 notices.
The only difference is the MIME type, not the HTML code.
Problem: I can't compare the reports.
The text was updated successfully, but these errors were encountered:
The main part of the issue seems to relate to a " " entity placed in the gap in the "X Errors, Y Warnings" message on the issue list. When parsed as XHTML instead of XML, entities like nbsp don't exist, so the browser is throwing a DOM processing error. This can probably be fixed by changing it to " " instead, and I'll look at getting it fixed in the next release.
The differences between IE8 and IE9/Firefox/Chrome may be due to the different methods of processing the document into the DOM compared with newer browsers. Certainly if it is sent and parsed as XHTML, there is no room for browser interpretation on parsing, unlike plain HTML.
In Chrome, Firefox and IE9 I get 6/33/72 (errors/warnings/notices) in each, IE8 I get slightly different. Unfortunately this is not something that can easily be worked around, since HTMLCS works on the DOM, not on the source code.
luketw
pushed a commit
to luketw/HTML_CodeSniffer
that referenced
this issue
Oct 26, 2012
…es parsed as XHTML.
Same thing, but XHTML (based on XML) does not have the automatic definition for nbsp like HTML, so was throwing syntax errors in XML parsing.
This occured when there was more than one type of error shown in the issue list (eg. "5 errors, 30 warnings").
Fixes GitHub issue squizlabs#53.
On page that are served with MIME type 'application/xhtml+xml', the 'View Report' link doesn't work. Tested with Firefox 16.0.1 and URI http://www.opvallendeplanten.nl/
When IE8 is used, the same page is served with MIME type 'text/html'. In that case, the 'View Report' link does work.
PS:
In Firefox, HTML_CodeSniffer reports 6 errors, 33 warnings and 72 notices.
In IE8, HTML_CodeSniffer reports 7 errors, 34 warnings and 69 notices.
The only difference is the MIME type, not the HTML code.
Problem: I can't compare the reports.
The text was updated successfully, but these errors were encountered: