-
Notifications
You must be signed in to change notification settings - Fork 756
Description
Branching off from #9247, that had these comments about being able to use Custom Highlights inside of textarea/input[type="text"]:
(#) Then yeah, I suspect pushing on that part (being able to style ranges in a textarea and other inputs) might be the place to start, before we step to a higher level and build in some parsing libraries.
(#) Yeah, that sounds like a bug with the Highlight API that we should fix; definitely not a reason to design a whole other API.
(#) It's not obvious if it's a browser bug or an API bug. If you can create a range you should be able to set a highlight on it, as I understand the spec. Does anyone happen to know if you can create the desired range for the textarea?
As reference, we can certainly draw spelling and grammar markers in textarea.
Adding on to these comments, I recently received numerous requests from authors if Custom Highlights can be used on (mainly) a textarea element.
The developer need is there, so the question is if we need to add something to the spec that would allow this. Or does the spec already allow it, and it this purely a current oversight of implementers?