Open Bug 839818 Opened 11 years ago Updated 2 years ago

HTML entity tooltip

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: miker, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Web developer markup view should have an entity tooltip as appropriate.
Attached image Entity Tooltip
It should look something like this (screenshot courtesy of Lea Verou).

The code she uses for her previews is at https://github.com/LeaVerou/dabblet/blob/master/code/previewers.js

She says that if we use her code (with changes) we should credit her in the file header.
/(&#?[0-9a-fA-F]+|&\w+);?/gi
Summary: Web developer markup view should have an entity tooltip as appropriate → Markup view should have an entity tooltip as appropriate
Priority: -- → P2
Maybe the tooltip could even allow to change the entity by offering a list of entities (e.g. like the Character Map in Windows).

Sebastian
See Also: → 978487
See bug 967493 comment 7: doing this in the markup view isn't possible. The markup view represents the DOM tree that's in memory, and at this stage, entities have already been converted.

We could do this, however, in the rule view, for "content" properties. However "content" does not accept entities, but will render unicode:

content: "\2665";

Maybe we could have a tooltip for those.
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Priority: P2 → P3
(In reply to Patrick Brosset <:pbro> from comment #4)
> See bug 967493 comment 7: doing this in the markup view isn't possible. The
> markup view represents the DOM tree that's in memory, and at this stage,
> entities have already been converted.

Note that Firebug has a feature like this, more precisely it has a way to switch the display of all entities to symbols, names or Unicode representation. As Firebug's HTML panel is also based on the in-memory DOM tree, it does not consider whether the characters were authored as HTML entities or not.

Sebastian
See Also: → 967493
Severity: normal → enhancement
Summary: Markup view should have an entity tooltip as appropriate → HTML entity tooltip
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: