SushmitaSen / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

name attribute stripped in SharePoint #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try using SH in SharePoint

What is the expected output? What do you see instead?
Expected name attribute to stay, but SharePoint strips it out.  So no
syntax highlighting is performed.  I'll have to tweak the js to use a
compound class instead - i.e. instead of 
<pre class="c-sharp" name="code">...</pre>
I'll need to use
<pre class="c-sharp code">...</pre>

What version of the product are you using? On what operating system?
1.5.1 in custom SharePoint masterpage

Please provide any additional information below.
I know this isn't a SH issue - it's MOSS being stupid, stripping attributes
it should leave alone.  That said it would be nice to have an option to use
compound class names instead of tag names.

Original issue reported on code.google.com by austegard on 14 Mar 2008 at 8:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
"name" attribute is also allowed in XHTML validation.
can "id" ised instead? yes, document better to have only unique ids, but it is 
a "warning" situation and not a "error"

Original comment by serge....@gmail.com on 9 May 2008 at 2:53