This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216551 - Meta property for Facebook Open Graph Shows as code error.
Summary: Meta property for Facebook Open Graph Shows as code error.
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 221682 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-08 18:36 UTC by mikenytola
Modified: 2016-02-12 15:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
CASE 1 & CASE 2 Screen Shots (196.67 KB, image/png)
2012-08-08 18:36 UTC, mikenytola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikenytola 2012-08-08 18:36:49 UTC
Created attachment 122884 [details]
CASE 1 & CASE 2 Screen Shots

When you add Facebook's open graph meta data into the head of a document, depending on the doc type, it will either show these open graph meta tags as a syntax error or a warning.

CASE 1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Results in the follow to show an error:

<meta property="og:url" content="http://www.someurl.com" />
<meta property="og:title" content="Page title" />
<meta property="og:description" content="Page Description" />
<meta property="og:image" content="http://www.someurl.com" name="thumb" /> 
________________________________________

CASE 2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

Results in no error to the meta tags, but shows a warning for the doctype line.
________________________________________

CASE 3

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Results are the same as CASE 1.
________________________________________

CASE 4

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Results are the same as CASE 2
________________________________________

CASE 5

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Results are the same as CASE 1
________________________________________

CASE 6

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Results are the same as CASE 1
________________________________________

CASE 7

<!DOCTYPE html>

Results in the meta tags showing as an error as in CASE 1.
________________________________________
Comment 1 Marek Fukala 2012-12-05 14:11:30 UTC
*** Bug 221682 has been marked as a duplicate of this bug. ***
Comment 2 Milutin Kristofic 2016-02-12 15:27:25 UTC
This is fixed with new update of html validator in netbeans. Check dev version of Netbeans Fixed in http://hg.netbeans.org/web-main/rev/26573d86f877