Add a tooltip to show @title to the user when an input element has @pattern

RESOLVED FIXED

Status

()

Firefox
General
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: mounir, Assigned: mounir)

Tracking

(Blocks: 1 bug, {html5})

unspecified
html5
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
When an input element has a pattern attribute, the title attribute may be used to inform the user about what is requested. This should be showed to the user via a tooltip when the mouse is hover for example.

Note: I'm not really sure about the Product/Component so do not hesitate to change them if you think I'm wrong.
(Assignee)

Comment 1

7 years ago
Actually, nothing has to be done: the default behavior is to show a tooltip with @title. So authors will have to be sure @title contains a description of @pattern.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Keywords: dev-doc-needed
Resolution: --- → FIXED
(Assignee)

Updated

7 years ago
Assignee: nobody → mounir.lamouri
Component: Form Manager → General
Product: Toolkit → Firefox
QA Contact: form.manager → general
(Assignee)

Comment 2

7 years ago
Let's have a test for this.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 3

7 years ago
Created attachment 460246 [details] [diff] [review]
Test v1

This test is quite simple but I think there is no test checking that the tooltip is correctly shown for input elements.
Attachment #460246 - Flags: review?(gavin.sharp)
Attachment #460246 - Flags: review?(gavin.sharp) → review+
(Assignee)

Comment 4

7 years ago
Marking checkin-needed: a=test-only
Keywords: dev-doc-needed → checkin-needed
http://hg.mozilla.org/mozilla-central/rev/920c60069743
Status: REOPENED → RESOLVED
Last Resolved: 7 years ago7 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.