Re: HTML spans with links
Thank you, I'm not surprised you knew the answer. So, one link is okay but two are not? We're using paragraph metadata where we can, but in most cases it isn't possible. We had to abandon the browser widget because we need field properties that are not supported there. It's a challenge, because the source files are complex. If LC can do the span substitutions reliably there won't be an issue. On 2/6/20 4:07 PM, hh via use-livecode wrote: The htmltext of a field is based on HTML3 or before. In HTML 3/4 a span can not contain two links, in HTML5 yes. [So a browser widget does what you explicitly wish to have.] Or if you set the metadata of the -tag instead (= set the metadata of line x of fld 1 to "metadata1"). JLG wrote: If I set the htmlText of a field to HTML that contains a span, and if that span also contains an anchor or href link, LC separates the span into multiple ones. For example, a field's htmlText set to this: This is some text that contains the metadata.linkOne And here is some more text. linkTwo becomes this when retrieved: This is some text that contains the metadata.linkOne And here is some more text. linkTwo How come it does that? Do links interfere with spans? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: HTML spans with links
The htmltext of a field is based on HTML3 or before. In HTML 3/4 a span can not contain two links, in HTML5 yes. [So a browser widget does what you explicitly wish to have.] Or if you set the metadata of the -tag instead (= set the metadata of line x of fld 1 to "metadata1"). > JLG wrote: > If I set the htmlText of a field to HTML that contains a span, > and if that span also contains an anchor or href link, > LC separates the span into multiple ones. > > For example, a field's htmlText set to this: > > This is some text that contains the > metadata. href="#fn">linkOne And here is some more text. href="#en">linkTwo > > becomes this when retrieved: > > This is some text that contains the > metadata. href="#fn">linkOne And here is some > more text. href="#en">linkTwo > > How come it does that? Do links interfere with spans? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
HTML spans with links
If I set the htmlText of a field to HTML that contains a span, and if that span also contains an anchor or href link, LC separates the span into multiple ones. For example, a field's htmlText set to this: This is some text that contains the metadata.href="#fn">linkOne And here is some more text. linkTwo becomes this when retrieved: This is some text that contains the metadata.href="#fn">linkOne And here is some more text. href="#en">linkTwo How come it does that? Do links interfere with spans? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode