Attributes values

November 07 2007

  • 1 reply.
  • This question is not yet resolved.
  • This question was started by Hang.
  • Last post by Carl.
Hang
user
November 2007, 18:19
Hi,

It seems attributes values are being searched by the spellchecker or when doing a search and replace.
Is there any way to enable this.
For instance:
<topic id="123" title="This should be searched or looked at by the spellchecker"/>
Carl
Xopus Team
November 2007, 09:54
I am sorry. There is no way to enable this.

Attributes are for meta-data generally, not for actual data that needs to be searched and spell-checked.

Putting a title in an attribute is not a good way of dealing with text in xml for it precludes the text from being found through scans on innerText or text of an element.

I suggest you change the xml to something like:

<topic id="123">This should be searched or looked at by the spellchecker</topic>

or even

<topic id="123">
<title>This should be searched or looked at by the spellchecker</title>
</topic>

in case you have more.


React

HTML will be shown as HTML code.
Linebreaks and Links starting with http:// are automatically resolved