Bug 444194 - orion.core.setting UI does not render if space in category name
Summary: orion.core.setting UI does not render if space in category name
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2014-09-15 18:00 EDT by Konrad Kolosowski CLA
Modified: 2014-09-18 16:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Kolosowski CLA 2014-09-15 18:00:50 EDT
I register orion.core.setting service.

provider.registerService('orion.core.setting', {}, {
settings : [ {
 pid : 'mypid',
 name : 'My Name',
 category : 'My Category',
....

Clicking on the category displays empty settings page (no properties).

Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('My CategorySettingsTable') contains HTML space characters, which are not valid in tokens. settings.js.src:26354
Comment 1 Curtis Windatt CLA 2014-09-18 16:52:22 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=a7a4faf31adb3594b019701d9062d0130897f086
Fixed in master, we will replace unsupported characters with dashes '-'.

Note that this means if you are styling a category of settings that has a space in it, your css class name will also need to replace the space with a dash.