The default bug view has changed. See this FAQ.

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

RESOLVED FIXED

Status

Mozilla Developer Network
Editing
P2
normal
RESOLVED FIXED
5 years ago
3 years ago

People

(Reporter: Trevor, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.
(Reporter)

Comment 1

5 years ago
This probably applies to all ids created from content.
Duplicate of this bug: 801062

Updated

4 years ago
Priority: -- → P2
(Reporter)

Comment 3

4 years ago
Created attachment 804852 [details] [diff] [review]
kuma-Bug795272_Non-breaking_spaces.patch
Trevor is right; we always convert spaces to underscores in URLs on MDN, so that's how this should work here too.

Comment 5

3 years ago
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

Updated

3 years ago
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.