Skip to content

html5+svg attributes are camelCase #28

@sglaser

Description

@sglaser

In SVG, some attributes are camelCase. I'm using Brackets with the HTMLHint extension and HTMLHint flags them as errors. For example, it complains about viewBox in this snippet.

<div class="svg hasSVG">
   <svg version="1.1" width="100%" height="194" viewBox="0 0 740 194">
      <g>
         <text x="512" y="12" class="regBitNum">0</text>
          <text x="16" y="12" class="regBitNum">31</text>
          <path d="M520,2l0,16M424,2l0,16M376,2l0,16M360,2l0,16M344,2l0,16M328,2l0,16M312,2l0,16M440,2l0,16M392,2l0,16M296,2l0,16M8,5.333333333333333l0,16" class="regBitNumLine" fill="none"></path>
       </g>
   </svg>
</div>

Ideally, HTMLHint would have a list of attributes that are camelCase (that can be extended / controlled by the user). Extra credit if it knows which tags allow which attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions