Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal - ID as combination of tag name and id number #94

Open
andrzejQ opened this issue Dec 21, 2023 · 1 comment
Open

Proposal - ID as combination of tag name and id number #94

andrzejQ opened this issue Dec 21, 2023 · 1 comment

Comments

@andrzejQ
Copy link
Contributor

The value of the id attribute must be unique within the HTML document, the id name must contain at least one character, cannot start with a number.

id attribute must be unique

must contain at least one character, cannot start with a number

* li 1
* li 2
* li 3

Current html:

<p id="0">id attribute must be unique</p>
<p id="2">must contain at least one character, cannot start with a number</p>
<ul id="4">
<li id="4">li 1</li>
<li id="5">li 2</li>
<li id="6">li 3</li>
</ul>

Proposal - combination of tag name and id number:

<p id="p_0">id attribute must be unique</p>
<p id="p_2">must contain at least one character, cannot start with a number</p>
<ul id="ul_4">
<li id="li_4">li 1</li>
<li id="li_5">li 2</li>
<li id="li_6">li 3</li>
</ul>
@andrzejQ
Copy link
Contributor Author

ex. id="ListItem_1" instead of id="1"
MarkdigMarkdownGenerator.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant