WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11968 closed defect (bug) (fixed)

balanceTags doesn't understand namespaced tags

Reported by: Otto42 Owned by:
Milestone: 3.0 Priority: high
Severity: major Version: 2.9.1
Component: Formatting Keywords: needs-patch
Focuses: Cc:

Description

Try to put something like this into a post (with unfiltered_html enabled):

<test:something>
garbage
</test:something>

If the balance tags option is enabled, it will mangle this content into this:

<test :something>
garbage
</test>

Reason: Balance tags doesn't understand that colons can be part of tag names.

This makes using things like XFBML (part of Facebook Connect) in posts very difficult.

Change History (2)

comment:1 Otto424 years ago

  • Keywords needs-patch added
  • Milestone changed from Unassigned to 3.0

comment:2 dd324 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13913]) Recognise namespaces in tags for balanceTags(). Fixes #11968

Note: See TracTickets for help on using tickets.