Closed Bug 795272 Opened 12 years ago Closed 10 years ago

Non-breaking spaces in H tags are encoded in the id attribute, would probably be better to make underscore

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: trevorhemail-mozbug, Unassigned)

References

Details

Attachments

(1 file)

Entering <h3>DOM&nbsp;Interface</h3> and saving results in <h3 id="DOM.C2.A0Interface">DOM&nbsp;Interface</h3>

It would probably be better if the non-breaking space was treated as a regular space and converted to an underscore in the id.
This probably applies to all ids created from content.
Priority: -- → P2
Trevor is right; we always convert spaces to underscores in URLs on MDN, so that's how this should work here too.
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/de20b821a35d22ee5d33397d7ab48db16cb21398
fix bug 795272 - Convert non-breaking spaces in header ids to underscores

https://github.com/mozilla/kuma/commit/02c704675fdf98cc81c700b9df1751486179cad4
Merge pull request #2785 from trevorhobson/bug795272

Bug 795272 - Convert non-breaking spaces in headers ids to underscores
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: