My favorites | Sign in
Project Home Wiki Issues
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 1980: < > does not get encoded while editing element content
2 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  sroussey
Closed:  Nov 2009

Sign in to add a comment
Reported by, Jul 6, 2009
What steps will reproduce the problem?
1. inspect element of any webpage with firebug
2. in the html tab edit the content of any element and insert the chars ><

What is the expected result? What do you see instead?
Firebug interprets these as closing/opening tag instead of encoding them
which is not desirable. It will create/delete elements arbitrarily.

Which version of Firebug? (more specific than latest please): 1.4.0b5
Which version of Firefox? 3.5
On what operating system? Win XP
Jul 8, 2009
#2 dave1010
Surely the desired effect is to easily create new elements with < and >. The chars
can be inserted the usual HTML way with &gt; and &lt;
Jul 23, 2009
Project Member #3 robmcampbell
yeah, not sure about this one. I agree with dave1010 that this makes it easier to
create new tags and encoding them with the greater / lesser entities is probably the
way to go.
Status: Triaged
Labels: Type-Defect html 1.4
Jul 23, 2009
My observation is that entering < and > behaves differently on HTML and XHTML and
even within XHTML in edit (they get ignored) and tree mode (deletes element content).
So three different results for the same input.
I suggest to encode < and > while editing unless the user enters well-formed XHTML,
i.e. with start and end tag.
Nov 8, 2009
Project Member #5 sroussey
(No comment was entered for this change.)
Owner: sroussey
Nov 8, 2009
Project Member #6 sroussey
(No comment was entered for this change.)
Status: Started
Nov 16, 2009
Project Member #7 sroussey
Changes committed in r4821.
Status: Commit
Nov 18, 2009
Project Member #8
This is one of 26 fixes in Firebug 1.5X.0b4. Please try the new release and
let us know if this problem is solved.
Status: Fixed
Nov 20, 2009
#9 dave1010
Thanks! This seems to be working perfectly for me in HTML and XHTML pages with
Firebug 1.5X.0b.

To clarify, editing a node's content in the HTML tab escapes the < and > to &gt; and
&lt;. Double clicking on a HTML node or clicking on the Edit button doesn't escape <
and >, allowing you to create new HTML nodes.
Nov 20, 2009
Project Member #10 sroussey
You can also use the Text As Source option in the HTML panel to allow you to create nodes as before 
(and show entities).
Status: Verified
Jun 5, 2012
Project Member #11
(No comment was entered for this change.)
Labels: fixed-1.5-b4
Sign in to add a comment

Powered by Google Project Hosting