getElementById : IE Issues

This question already has an answer here:

  • What are valid values for the id attribute in HTML? 21 answers

  • HTML4 doesn't allow slashed as mentioned in this definition:

    ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

    IE still enforces that standard.

    If you want to use the url, rather store the url in a data-url attribute.

    链接地址: http://www.djcxy.com/p/15454.html

    上一篇: 命名分区ID我想要的任何东西

    下一篇: getElementById:IE问题