NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 720 - Validating post-processed files but reporting source line numbers and file names
Validating post-processed files but reporting source line numbers and file names
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 enhancement
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-25 11:42 CET by Ian 'Hixie' Hickson
Modified: 2010-02-25 11:45 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 'Hixie' Hickson 2010-02-25 11:42:50 CET
It would be nice if files could be annotated with pragmas that made the validator reset the line number and file name information used for reporting line numbers, so that when validating files constructed from multiple source files or from templates, the original filenames and line numbers would be reported.

Some compilers support something similar using "#line 123" or "#file abc.x". I would suggest a similar syntax, but using HTML/XML comments:

   <!--!LINE 123--><!--!FILE abc.html-->

...or some such.
Comment 1 Michael[tm] Smith 2010-02-25 11:45:24 CET
[adding Yudai to Cc]

Yudai, if you have time to look into this enhancement request, please let us know