1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 16:25:47 +01:00

Death to E4X and stuff.

This commit is contained in:
Kris Maglione
2012-11-28 00:15:06 -08:00
parent 9c1dc28cc9
commit b7fa2f904d
6 changed files with 46 additions and 62 deletions

View File

@@ -868,7 +868,7 @@ var Buffer = Module("Buffer", {
// add the frame indicator
let doc = frames[next].document;
let indicator = DOM(<div highlight="FrameIndicator"/>, doc)
let indicator = DOM(["div", { highlight: "FrameIndicator" }], doc)
.appendTo(doc.body || doc.documentElement || doc);
util.timeout(function () { indicator.remove(); }, 500);
@@ -1533,7 +1533,7 @@ var Buffer = Module("Buffer", {
_exWidth: function _exWidth(elem) {
try {
let div = DOM(<elem style="width: 1ex !important; position: absolute !important; padding: 0 !important; display: block;"/>,
let div = DOM(["elem", { style: "width: 1ex !important; position: absolute !important; padding: 0 !important; display: block;" }],
elem.ownerDocument).appendTo(elem.body || elem);
try {
return parseFloat(div.style.width);