Revision 96284179
| b/webodf/lib/gui/xmledit.js | ||
|---|---|---|
| 21 | 21 |
cssprefix + ":after {color: blue;}\n" +
|
| 22 | 22 |
cssprefix + "customns|atts {display:inline; margin: 0px; white-space: normal;}\n" +
|
| 23 | 23 |
cssprefix + "customns|atts:after {content: '>';}\n" +
|
| 24 |
cssprefix + "customns|attn {display:inline; margin: 0px; white-space: pre;}\n" +
|
|
| 24 |
cssprefix + "customns|attn {display:inline; margin: 0px; white-space: pre; color: blue;}\n" +
|
|
| 25 | 25 |
cssprefix + "customns|attn:before {content: '\\A ';}\n" +
|
| 26 | 26 |
cssprefix + "customns|attn:first-child:before {content: ' ';}\n" +
|
| 27 | 27 |
cssprefix + "customns|attv {display:inline; margin: 0px; white-space: pre;}\n" +
|
| ... | ... | |
| 133 | 133 |
if (!(n.namespaceURI in prefixes)) {
|
| 134 | 134 |
prefixes[ns] = null; |
| 135 | 135 |
} |
| 136 |
localnames[n.localName] = null;
|
|
| 136 |
localnames[n.nodeName] = null;
|
|
| 137 | 137 |
atts = n.attributes; |
| 138 | 138 |
for (i = atts.length - 1; i >= 0; i -= 1) {
|
| 139 | 139 |
att = atts.item(i); |
| ... | ... | |
| 186 | 186 |
names = tagnames[ns]; |
| 187 | 187 |
for (name in names) {
|
| 188 | 188 |
if (names.hasOwnProperty(name)) {
|
| 189 |
csssel = pre + name; |
|
| 189 |
csssel = pre + name.replace(/\w+:/, "");
|
|
| 190 | 190 |
css = css + csssel + ":before { content: '<" + name +
|
| 191 | 191 |
"';}\n" + csssel + ":after { content: '</" +
|
| 192 | 192 |
name + ">';}\n"; |
Also available in: Unified diff