What's weird about this error is it's only affecting a single node on a fairly large site:

http://nnwo.org/node/149

When I disable the editor, the source code is there in the textarea but the text editor (TinyMCE) doesn't seem to like it (in Firefox at least, Chrome works fine). Enabling the rich text editor causes the error to repeat:

Error: regular expression too complex
Source File: http://nnwo.org/misc/jquery.js?i
Line: 12

Has anyone else ever seen this before? I can't for the life of me figure out what's causing it and why only for just that one node.

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Can you post the source HTML text that's contained in the textarea?

seanr’s picture

It was just this:

<p style="text-align: center;"><strong>***LEGISLATIVE ALERT***</strong></p> <p style="text-align: center;">&nbsp;</p> <p style="text-align: center;"><strong>House Passes Agriculture Spending Bill</strong></p> <p style="text-align: center;">Women, Infants and Children (WIC) Program Reduced by $686 million</p> <p>(<strong>Washington, DC</strong>)—On June 16 the House narrowly passed the Agriculture spending bill, 217-2003, with 19 Republicans joining all Democrats in opposing the bill. This is the third spending bill being considered in the House this year for FY 2012.

The spending measure calls for drastic cuts in international and domestic food aid, cutting discretionary funding for the Department of Agriculture by 13 percent in FY 2012.</p><p>The measure provides $125.5 billion in both mandatory and discretionary funding, $283 more than the current level, but $7 billion less than President Obama’s budget proposal. Included in the bill is $17.2 billion in discretionary funding, 23 percent less than the President’s request.</p> <p>The Navajo Nation receives funds under this appropriation to the Department of Agriculture through the following programs: Animal and Plant Health Inspection Service (APHIS), Rural Housing Preservation Grants, Women, Infants and Children (WIC), Child and Adult Care Program, Rural Business Enterprise Grants and Rural Cooperative Development Grants.</p> <p>The WIC program is funded under this bill at $6 billion, a reduction of $686 million from current funding levels. The Navajo Nation received $10.7 million through the WIC program in current FY 2011. The House bill calls for $75 million to be spent toward breastfeeding initiatives.</p> <p>The Senate must pass its own version of the FY 2012 Agriculture spending measure before it goes to President Obama for signature.</p> <p><strong>Correction</strong><br>Corrects first paragraph to say On June 16 the House narrowly passed the Agriculture spending bill, 217-2003, with 19 Republicans joining all Democrats in opposing the bill; fourth paragraph to say The Navajo Nation received $10.7 million through the WIC program in current FY 2011.</p> <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
mygumbo’s picture

This is happening with our site too.

-- it's only a small subset of the nodes (2 found so far)
-- nothing displays in the body textarea (except the background color), but disable rich text and the source is there
-- mac firefox and mac safari show this behavior, but pc chrome and even pc ie8 display ok

<P><EM><SPAN style="FONT-FAMILY: Tahoma"><STRONG><SPAN style="COLOR: #339966">Reading Schedule for the Second Half of the Semester...</SPAN></STRONG></SPAN></EM></P>
<P><STRONG><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'">Section 1:</SPAN></SPAN></STRONG></P>
<UL>
<LI>Margaret Price, <EM>Mad at School: Rhetorics of Mental Disability and Academic Life</EM>&nbsp;</LI></UL>
<P><SPAN style="FONT-FAMILY: 'Courier New'"><STRONG><SPAN style="COLOR: #008080">Section 2:</SPAN></STRONG></SPAN></P>
<UL>
<LI>Kay Redfield Jamison, <EM>An Unquiet Mind: A Memoir of Mood and Madness</EM>&nbsp;</LI></UL>
<P><STRONG><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'">Section 3:</SPAN></SPAN></STRONG></P>
<UL>
<LI>Eli Clare, <EM>Exile and Pride: Diability, Queerness, and Liberation</EM></LI>
<LI>Ellen Samuels, "Coming Out Discourses"</LI>
<LI>Robert McRuer, "Compulsory Able-Bodiedness and Queer/Disabled Existence" (can be found in <EM>Disability Studies: Enabling the Humanities</EM>)</LI>
<LI><A href="http://www2.davidson.edu/academics/acad_depts/galleries/reformations/artists/scott/index.html">Works by Judith Scott</A></LI>
<LI>Introduction to Eve Sedgwick's <EM><A href="http://books.google.com/books?id=WxPkd2nqBwQC&amp;printsec=frontcover&amp;dq=eve+sedgwick+touching+feeling&amp;source=bl&amp;ots=Wa5n1fma36&amp;sig=CGgiRGjrB_MqrLe4OjtZVSfuSr8&amp;hl=en&amp;ei=1RB0TbXoC8GB8gaN_KTpCw&amp;sa=X&amp;oi=book_result&amp;ct=result&amp;resnum=4&amp;ved=0CCgQ6AEwAw#v=onepage&amp;q&amp;f=false">Touching Feeling: Effect, Pedagogy, Performativity</A></EM></LI>
<LI><A href="http://www.youtube.com/watch?v=DA4I6Q0x60s">Outsider: The Life and Art of Judith Scott</A> (documentary)&nbsp;</LI></UL>
<P>&nbsp;</P>
<P><STRONG><SPAN style="COLOR: #003366"><SPAN style="FONT-SIZE: medium">Reading/Resources List</SPAN></SPAN></STRONG></P>
<P><SPAN style="COLOR: #339966"><SPAN style="FONT-FAMILY: Tahoma"><EM><STRONG>Introducing Disability Studies...</STRONG></EM></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Lennard Davis, <EM>Disabilities Studies Reader</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Lennard Davis, <EM><A href="http://www.haverford.edu/invisible/davis_0202201116284600.pdf">Enforcing Normalcy</A></EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Elaine Scarry, <EM>The Body in Pain</EM><BR></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Margaret Price,&nbsp;<EM>Mad at School: Rhetorics of Mental Disability and Academic Life</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Erving Goffman, <EM>Stigma: Notes on the Management of Spoiled Identity</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><A href="http://serendip.brynmawr.edu/sci_cult/culturedisability.html">Ray&nbsp;McDermott and Herve Varenne, "Culture as Disability"</A></SPAN></LI></UL>
<P><SPAN style="COLOR: #339966"><SPAN style="FONT-FAMILY: Tahoma"><EM><STRONG>Disability Studies Intersects with...</STRONG></EM></SPAN></SPAN></P>
<P><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'"><STRONG>Literature</STRONG></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">Sharon L. Snyder, Brenda Jo Brueggemann and Rosemarie Garland Thomson,&nbsp;<EM>Disability Studies: Enabling the Humanities</EM></SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">David T. Mitchell, "Narrative Prosthesis and the Materiality of Metaphor"&nbsp;</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">G. Thomas Couser, "Signifying Bodies: Life Writing and Disability Studies"</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">Lennard Davis, "Bodies of Difference: Politics, Disability, and Representation"</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">Georgina Kleege, "Disabled Students Come Out: Questions without Answers"&nbsp;</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">Robert Murphy, "Encounters: The Body Silent in America"&nbsp;</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><SPAN style="FONT-FAMILY: Verdana">Susan Reynolds Whyte, "Disability between discourse and Experience"</SPAN></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">James C. Wilson and Cynthia Lewiecki-Wilson, "Constructing a Third Space: Disability Studies, the Teaching of English, and Institutional Transformation"&nbsp;</SPAN></LI></UL>
<P><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'"><STRONG>Art</STRONG></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Tobin Siebers,&nbsp;<EM>Disability Aesthetics</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><EM>Alexander McQueen: Genius of a Generation</EM>&nbsp;(Spring/Summer 2001 Collection)</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Georgina Kleege,&nbsp;<EM>Sight Unseen</EM> </SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Georgina Kleege, <A href="http://www.katherinesherwood.com/sherwood/articles/goglidoor_kleege.html">"Brain Work: A Meditation on the Painting of Katherine Sherwood"</A></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><A href="http://www.katherinesherwood.com/sherwood/art/sherwoodart.html">Katherine Sherwood's Artwork</A></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Snyder, "Infinities of Forms: Disability FIgures in Artistic Traditions" (can be found in <EM>Disability Studies: Enabling the Humanities</EM>)</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small"><A href="http://www2.davidson.edu/academics/acad_depts/galleries/reformations/index.html">Re/Formations: &nbsp;Disability, Women, and Sculpture</A></SPAN></LI></UL>
<P><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'"><STRONG>Gender&nbsp;</STRONG></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Mairs, "Sex and Death and the Crippled Body: A Meditation" (can be found in <EM>Disability Studies: Enabling the Humanities</EM>)&nbsp;</SPAN></LI></UL>
<P><SPAN style="COLOR: #008080"><SPAN style="FONT-FAMILY: 'Courier New'"><STRONG>Queer Studies</STRONG></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Jay Prosser,&nbsp;<EM>Second Skins:&nbsp;The Body Narratives of Transsexuality</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Michael Warner,&nbsp;<EM>The Trouble with Normal</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">McRuer’s “Compulsory Able-Bodiedness and Queer/Disabled Existence”</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Eli Clare, <EM>Exile and Pride: Disability, Queerness, and Liberation</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Heather Love, <EM>Feeling Backward: Loss and the Politics of Queer History</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Ellen Samuels, "Coming Out Discourses"</SPAN></LI></UL>
<P><SPAN style="COLOR: #339966"><EM><STRONG>Living with Mental Illness...</STRONG></EM></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Susanne Antonetta, <EM>Travels in a Neurodiverse World</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Kay Redfield Jamison, <EM>An Unquiet Mind</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Kay Redfield Jamison, <EM>Touched With Fire</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Jeff Bell, <EM>Rewind, Replay, Repeat:&nbsp;A Memoir of Obsessive Compulsive Disorder </EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Virginia Woolf, "On Being Ill"&nbsp;</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">John Wray, <EM>Lowboy</EM></SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Elizabeth Wurtzel, <EM>Prozac Nation: Young and Depressed in America</EM> </SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">A Alvaraz, <EM>The Savage God: A Study of Suicide &nbsp;&nbsp;</EM></SPAN><SPAN style="DISPLAY: none">&nbsp;</SPAN></LI></UL>
<P><SPAN style="COLOR: #339966"><SPAN style="FONT-FAMILY: Tahoma"><EM><STRONG>Current Events...</STRONG></EM></SPAN></SPAN></P>
<UL>
<LI><SPAN style="FONT-SIZE: small">Jeff Bell, </SPAN><A href="http://www.psychologytoday.com/blog/beyond-the-doubt/201101/too-is-face-mental-illness"><SPAN style="FONT-SIZE: small">“This, too, is a Face of Mental Illness:&nbsp;Stigma... and the other potential victims of the Tuscon Tragedy”</SPAN></A></LI>
<LI><SPAN style="FONT-SIZE: small">Bassey Ikpi, </SPAN><A href="http://www.huffingtonpost.com/bassey-ikpi/a-little-sympathy-for-the_b_809843.html"><SPAN style="FONT-SIZE: small">“A Chance to Change the Way We Look at Mental Illness”&nbsp;</SPAN></A></LI>
<LI><SPAN style="FONT-SIZE: small">Jeff Bell, </SPAN><A href="http://www.psychologytoday.com/blog/beyond-the-doubt/201010/so-there-i-was"><SPAN style="FONT-SIZE: small">“So there I was…Tapping the Power of Storytelling”&nbsp;</SPAN></A></LI>
<LI><SPAN style="FONT-SIZE: small">The Harvard Crimson, </SPAN><A href="http://www.thecrimson.com/article/2011/2/17/harvard-many-feel-out/"><SPAN style="FONT-SIZE: small">“I Am Fine”</SPAN></A><SPAN style="FONT-SIZE: small">&nbsp;</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Jeanette Winterson, </SPAN><A href="http://online.wsj.com/article/SB10001424052748704322004574475654003711242.html"><SPAN style="FONT-SIZE: small">"In Praise of the Crack-Up: a novelist peers through darkness to find glittering gems in writing and art"</SPAN></A><SPAN style="FONT-SIZE: small">&nbsp;</SPAN></LI>
<LI><SPAN style="FONT-SIZE: small">Alina Tugent, </SPAN><A href="http://www.nytimes.com/2011/03/12/your-money/12shortcuts.html?pagewanted=1&amp;_r=2"><SPAN style="FONT-SIZE: small">"It's Just Fine to Make Mistakes"</SPAN></A><BR>&nbsp;</LI></UL>
<P><SPAN style="COLOR: #339966"><EM><STRONG><SPAN style="FONT-FAMILY: Verdana">Mental Health Resources:</SPAN></STRONG></EM></SPAN></P>
<P><A href="http://www.activeminds.org/
">Active Minds</A>
</P>
<P>Active Minds is a national organization dedicated to spreading awareness about mental health and mental illnesses on college campuses. If your college or university doesn't have a chapter, consider starting one! Visit their website for more information.</P>
<P><A href="http://www.adaa.org/
">Anxiety Disorders Association of America</A>
</P>
<P>Find information about obsessive-compulsive disorder, social anxiety disorder, panic disorder, generalized anxiety disorder, post-traumatic stress disorder, specific phobias, depression, eating disorders, and sleep disorders. On their site, you can also find a therapist near you from database organized by geographical region.&nbsp;</P>
<P><A href="http://www.gotanxiety.org
">Got Anxiety?
</A></P>
<P>Created by the Anxiety Disorders Association of America, Got Anxiety? focuses on spreading awareness about anxiety disorders on college campuses. Not sure if you've received a proper diagnosis? Take one of their quizzes for a better idea.</P>
<P><A href="http://www.nimh.nih.gov/health/publications/anxiety-disorders/complete-index.shtml
">National Institute of Mental Health
</A></P>
<P>The National Institute of Mental Health works to spread information on mental health disorders and treatment options. &nbsp;</P>
<P><A href="http://www.med.upenn.edu/ctsa/
">Center for the Treatment and Study of Anxiety (CTSA)
</A></P>
<P>The CTSA at the University of Pennsylvania provides treatment for those suffering from anxiety disorders. The center often conducts research studies and looks for qualified individuals to participate. Those involved in the studies receive treatment for free! Great if you attend school in the Philly area!</P>
<P><A href="http://www.ocfoundation.org/
">International Obsessive-Compulsive Foundation
</A></P>
<P>The IOCF is non-profit organization dedicated to supporting individuals and families affected by OCD, aiding research opportunities for the disorder, and spreading awareness about the illness.</P>
<P><A href="http://www.ocdchicago.org/index.php/college/
">OCD Chicago
</A></P>
<P>OCD Chicago is a website dedicated to helping college students struggling with OCD. Hear stories about other college students battling OCD and find information about disability accommodations.&nbsp;</P>
<P><A href="http://www.peaceofmind.com
">Peace of Mind
</A></P>
<P>Developed by Elizabeth McIngvale, the spokesperson of the Obsessive-Compulsive Foundation, Peace of Mind is dedicated to promoting awareness about OCD and offering support to those who have difficulty affording treatment.</P>
<P><A href="http://www.bringchange2mind.org/">BringChange2Mind</A></P>
<P>Started by actress Glenn Close and her sister Jessie, BringChange2Mind strives to reduce the stigma surrounding mental illness through dialogue and awareness.&nbsp;</P>
<P><A href="http://www.jedfoundation.org/">The Jed Foundation</A></P>
<P>The Jed Foundation aims to reduce emotional distress and prevent suicide among college students.&nbsp;</P>
<P><A href="http://www.ridingthecurve.org">Riding the Curve</A></P>
<P>Riding the Curve aims to spread awareness about anxiety disorders on college campuses and counseling centers across the country.&nbsp;<BR><A href="http://serendip.brynmawr.edu/exchange/node/9319#comment-126635"><BR><SPAN style="COLOR: #3366ff">Resouces on Serendip</SPAN></A></P>
<P>&nbsp;</P>
<P>&nbsp;</P>
hctom’s picture

I also get this errors now... and after som research:

This seems to be a bug in Firefox 4/5

https://support.mozilla.com/en-US/questions/797123

twod’s picture

I was able to reproduce this, especially with invalid XHTML markup (#2 has a missing / in a br tag, #3 has uppercase tags and other symptoms of being previously mangled by IE), but like hctom said, this appears to be a browser issue and I can't find a reliable workaround for it.

mygumbo’s picture

Safari shows this behavior too.

jeffschuler’s picture

I was experiencing this too. Couldn't save the node and couldn't disable rich text [seeing regex error] without switching to Filtered HTML Input Format first.

I found that there are characters in the markup that look like spaces that aren't really spaces, but are rather the character with ASCII code 8232.

If you look through the markup posted in comments #2 and #3 here, you'll find the same character, though it just looks like a space.

I stripped those out and was able to save the node.

twod’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Looks like this is a browser problem triggered by invalid markup or perhaps encoding issues. I don't think we can work around this in Wysiwyg itself so I'll close the issue.
If anyone is able to find out more and perhaps even find a workaround, please reopen the issue. We'd be really grateful!