This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21992 - Consider adding .inputMethodContext to SVGElement
Summary: Consider adding .inputMethodContext to SVGElement
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - IME API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Takayoshi Kochi
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 04:55 UTC by Takayoshi Kochi
Modified: 2014-04-08 05:21 UTC (History)
4 users (show)

See Also:


Attachments

Description Takayoshi Kochi 2013-05-10 04:55:27 UTC
In the current spec draft (Apr. 4, 2013 version) getInputContext() is
defined as a partial interface to HTMLElement, but this should be
added as well to SVGElement.
Comment 1 Travis Leithead [MSFT] 2013-05-28 21:55:54 UTC
SVG editing using designMode/contenteditable sounds like an interesting and extremely complicated investment area for the browser. I don't think we want to support using SVG elements for editing scenarios at the moment.

Let’s focus on making editing HTML elements better for now.

I think the API is fine the way it is hanging off of HTMLElement.
Comment 2 Takayoshi Kochi 2013-05-29 02:08:13 UTC
Thanks for the input.

I'm still studying feasibility for this, and let's keep this open
until we find good reasons to or not to do so for SVG element.

Currently SVG element can be focus-able with tabindex and can get
key events, so the same could be done for composition events.
Comment 3 Takayoshi Kochi 2013-07-04 07:22:57 UTC
If we allow just receiving DOM compositionevents on any SVG element
which have focus (just like keydown events), it would be more consistent
between HTMLElement and SVGElement.

As Travis commented in #1, allowing contenteditable on SVG element
should be a hard thing, but just allowing it to handle composition event
and allow Javascript code to draw the composition wouldn't add much
complexity to SVG code.

I'll investigate this further for this but this can be dropped from the
first version of IME API, as the need for this should not be so big.
Comment 4 Takayoshi Kochi 2013-10-10 06:03:03 UTC
As the method was changed to a property (getInputContext() -> .inputMethodContext), changed the subject accordingly.
Comment 5 Takayoshi Kochi 2014-04-08 05:21:09 UTC
Somebody will revisit this once this is required for a useful purpose.