Mike, how is the WV being set?
Is this perhaps a change in the WebKit?
What OS have you tested this on?
Tested on OS X. I suspect what is getting returned is a result of the updated webkit, however a "cleaned up" version is getting returned.
If you use the developer tools in Safari to inspect an element, you get similar results, but not the actual HTML as written, which you can see by viewing the source.
I ran into it with a script that was pattern matching on an element that got rewritten, and broke my script.
Browsers are 'forgiving' and let us send all kinds of garbage and most of it comes out decent enough.
The "data:" protocol is supposed to be a snippet (include or not included) in other HTML. I wonder if webkit is now providing the "assumed" tags as the browsers do.
It would be really helpful, wouldn't it, to know what changed in WebKit (as used by FM!)
Agreed! It's a real pain for web scraping.
Well, if you want the original html, you may need to just download the html file.
1 of 1 people found this helpful
There may not be an html file, this content is generated dynamically. For that matter, it may not even be html at all, but delimited data served from a web server. In that case, html tags are inserted around the resulting content, if retrieved with this function.
Insert from URL may be a better option, but for arbitrarily large content, it shows a dialog that cannot be turned off. The web viewer also predates that function, so was available in earlier versions. In my testing, the web viewer outperforms the insert from URL function for loading large content as well.
I have the same issue. It is breaking scripts that pattern matched content that did not have html markup included.
I don't understand how it can be webkit since FileMaker 15 still works but FileMaker 16 gets returned the data wrapped in a bunch of html markup code.
Is there away to get just the data - as FileMAker 12-15 did? Or do I have to rewrite all of my scripts to pattern match the returned HTML from the web viewer?
I reread this thread and I now understand that the latest webkit is built in to FileMaker 16 and that this is likely causing the issue.
But the question remains:
"Is there away to get just the data - as FileMAker 12-15 did? Or do I have to rewrite all of my scripts to pattern match the returned HTML from the web viewer?"