Menu

#1278 Highlight HTML5 custom data attribute as known attribute

Completed
closed
5
2019-04-27
2019-04-24
Zufu Liu
No

Discussion

  • Zufu Liu

    Zufu Liu - 2019-04-24

    Updated patch with comment.

     
  • Neil Hodgson

    Neil Hodgson - 2019-04-24

    Isn't this handled by using a prefix keyword ^data- as is done in SciTE?

     
  • Neil Hodgson

    Neil Hodgson - 2019-04-24
    • labels: --> scintilla, lexer, html
     
  • Zufu Liu

    Zufu Liu - 2019-04-24

    OK, completely fogot about prefix keyword.
    This can be closed as invalid of something.

    Maybe anothor prefix can be added ^aria-
    https://www.w3.org/TR/html-aria/

     
    • Neil Hodgson

      Neil Hodgson - 2019-04-25

      There appears to be a discrete list of valid "aria-" values like "aria-haspopup" and "aria-atomic" so a prefix doesn't appear correct as it would highlight invalid values as well.

       
  • Zufu Liu

    Zufu Liu - 2019-04-26

    OK, they can be added later when the draft become a W3C Recommendation, alongside with HTML 5.3.

     
  • Neil Hodgson

    Neil Hodgson - 2019-04-27
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.