Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
T.Ramada
tagDiv Member

Thanks. I understand that browsers are considerably lenient. The question was more to do with tagDiv Composer as it is the thing that seems to be throwing the error. Would the single double quote in combination with inserted HTML fragment cause it to throw a wobbly?

The HTML I had inserted was small and was just copied from one your dynamically created pages – so, it was pure and well formed.

Also, what I cant understand is why it works for a while and then ceases to work after some time? By work here I mean switching in and out of tagDiv Composer.

T.Ramada
tagDiv Member

Hi,

I was having the same problem after inserting some HTML into a page, just to test an idea I had.

However, the Error at rows: N(models) : N(dom) error only showed up after some time. I was able to close and open the same page multiple times over a considerable length of time before I encountered the error. Despite this, I could still view the page in a browser without error, open it up to edit but not switch over to tagDiv Composer. Does, the tagDiv Composer parser not work in real time?

In the referenced article. Solution 1, reads – “Clean the code. Recreate the element with the tagDiv Composer. If you need to add other items that are not present in the tagDiv Composer elements list, please use a “Column text” element

So,
1. I created a blank page
2. Switched to tagDiv Composer and added a Column Text element to the column.
3. Did nothing else and viewed the page in a browser.
4. Viewed the source code and validated the HTML at https://validator.w3.org/#validate_by_input

The generated HTML gave the following errors.

Error 20: Error: Saw ” when expecting an attribute name. Probable cause: = missing immediately before.
At line 702, column 228
5c87fc6780fc6″ “><div class=”t

Error 21: Warning: Attribute ” is not serializable as XML 1.0.
From line 702, column 34; to line 702, column 229
_wrapper”><div class=”wpb_wrapper wpb_text_column td_block_wrap td_block_wrap vc_column_text td_uid_5_5c87fc6780fc6_rand td-pb-border-top td_block_template_1″ data-td-block-uid=”td_uid_5_5c87fc6780fc6″ “><div c

Error 22: Error: Attribute ” not allowed on element div at this point.
From line 702, column 34; to line 702, column 229
_wrapper”><div class=”wpb_wrapper wpb_text_column td_block_wrap td_block_wrap vc_column_text td_uid_5_5c87fc6780fc6_rand td-pb-border-top td_block_template_1″ data-td-block-uid=”td_uid_5_5c87fc6780fc6″ “><div c
Attributes for element div:
Global attributes

The snippet of generated HTML that contains the extra double quotes is below:

1. <div class="vc_column td_uid_3_5c86d993cbb42_rand wpb_column vc_column_container tdc-column td-pb-span12">
2. <div class="wpb_wrapper">
3. <div class="wpb_wrapper wpb_text_column td_block_wrap td_block_wrap vc_column_text td_uid_4_5c86d993cbc72_rand td-pb-border-top td_block_template_1" data-td-block-uid="td_uid_4_5c86d993cbc72" ">
4. <div class="td-block-title-wrap"></div>
5. <div class="td-fix-index">
6. <p>Html code here! Replace this with any non empty text and that's it.</p>
7. </div>
8. </div>
9. </div>
10. </div>
11.

Could the generated double quote ” at line 3 above be a cause for the Error at rows: N(models) : N(dom) as my HTML text editor is unable to match up the opening and closing div tags correctly until I remove it.

Also, have you designed tagDiv Composer so that inserted HTML fragments appear b/w the <p></p> tags?

Viewing 2 posts - 1 through 2 (of 2 total)