[Webkit-unassigned] [Bug 13466] REGRESSION: Some Content Missing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 24 05:32:11 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13466


bdash at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bdash at webkit.org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |NeedsReduction




------- Comment #1 from bdash at webkit.org  2007-04-24 05:32 PDT -------
if (typeof HTMLElement != "undefined") {

    if(HTMLElement.prototype.__defineGetter__) {

        HTMLElement.prototype.__defineGetter__("innerText", function()
        {
            var tmp = this.innerHTML.replace(/<br>/gi, "\n");       ### <---
This line is throwing the exception.
            return tmp.replace(/<[^>]+>/g, "").replace(/ /g, " ");
        });

        HTMLElement.prototype.__defineSetter__("innerText", function(txtStr)
        {
            var parsedText = document.createTextNode(txtStr);
            this.innerHTML = "";
            this.appendChild(parsedText);
        });
    }

    if (HTMLElement.prototype.attachEvent==undefined)
HTMLElement.prototype.attachEvent = window.attachEvent;
    if (HTMLElement.prototype.detachEvent==undefined)
HTMLElement.prototype.detachEvent = window.detachEvent;

}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list