commit c1479fd5c176e5c023ac6d3a4d6b4b34a7db3470
Author: Peter Molnar
Date: Sun Jan 10 20:29:41 2016 +0000
NOT STABLE, NOT EVEN WORKING
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..733c072
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,675 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ {one line to give the program's name and a brief idea of what it does.}
+ Copyright (C) {year} {name of author}
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ {project} Copyright (C) {year} {fullname}
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
+
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..1f80902
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,16 @@
+{
+ "name": "petermolnar/wp-webmention-again",
+ "description": "",
+ "require": {
+ "php": ">=5.3.0",
+ "mf2/mf2": "0.2.*"
+ },
+ "license": "GPLv3",
+ "authors": [
+ {
+ "name": "Peter Molnar",
+ "email": "hello@petermolnar.eu",
+ "homepage": "https://petermolnar.eu"
+ }
+ ]
+}
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..6e80c23
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,74 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "0eb0473bfbeea8c0729e77c3e7687bb8",
+ "content-hash": "46f4a82eac34d91e4caceddae7feba9e",
+ "packages": [
+ {
+ "name": "mf2/mf2",
+ "version": "v0.2.12",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/indieweb/php-mf2.git",
+ "reference": "6701504876d6c9242eb310b35f41d40d9785ab4e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/indieweb/php-mf2/zipball/6701504876d6c9242eb310b35f41d40d9785ab4e",
+ "reference": "6701504876d6c9242eb310b35f41d40d9785ab4e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "3.7.*"
+ },
+ "suggest": {
+ "barnabywalters/mf-cleaner": "To more easily handle the canonical data php-mf2 gives you"
+ },
+ "bin": [
+ "bin/fetch-mf2",
+ "bin/parse-mf2"
+ ],
+ "type": "library",
+ "autoload": {
+ "files": [
+ "Mf2/Parser.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Barnaby Walters",
+ "homepage": "http://waterpigs.co.uk"
+ }
+ ],
+ "description": "A pure, generic microformats2 parser — makes HTML as easy to consume as a JSON API",
+ "keywords": [
+ "html",
+ "microformats",
+ "microformats 2",
+ "parser",
+ "semantic"
+ ],
+ "time": "2015-07-12 14:10:01"
+ }
+ ],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=5.3.0"
+ },
+ "platform-dev": []
+}
diff --git a/readme.txt b/readme.txt
new file mode 100644
index 0000000..6031f85
--- /dev/null
+++ b/readme.txt
@@ -0,0 +1,31 @@
+=== wp-webmention-again ===
+Contributors: cadeyrn
+Donate link: https://paypal.me/petermolnar/3
+Tags: webmention, pingback, indieweb
+Requires at least: 3.0
+Tested up to: 4.4.1
+Stable tag: 0.1
+License: GPLv3
+License URI: http://www.gnu.org/licenses/gpl-3.0.html
+Required minimum PHP version: 5.3
+
+Alternative Webmentions plugin
+
+== Description ==
+
+== Installation ==
+
+== Frequently Asked Questions ==
+
+== Changelog ==
+
+Version numbering logic:
+
+* every A. indicates BIG changes.
+* every .B version indicates new features.
+* every ..C indicates bugfixes for A.B version.
+
+= 0.1 =
+*2016*
+
+* initial public release
diff --git a/vendor/autoload.php b/vendor/autoload.php
new file mode 100644
index 0000000..b045960
--- /dev/null
+++ b/vendor/autoload.php
@@ -0,0 +1,7 @@
+
+ * Jordi Boggiano
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Composer\Autoload;
+
+/**
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
+ *
+ * $loader = new \Composer\Autoload\ClassLoader();
+ *
+ * // register classes with namespaces
+ * $loader->add('Symfony\Component', __DIR__.'/component');
+ * $loader->add('Symfony', __DIR__.'/framework');
+ *
+ * // activate the autoloader
+ * $loader->register();
+ *
+ * // to enable searching the include path (eg. for PEAR packages)
+ * $loader->setUseIncludePath(true);
+ *
+ * In this example, if you try to use a class in the Symfony\Component
+ * namespace or one of its children (Symfony\Component\Console for instance),
+ * the autoloader will first look for the class under the component/
+ * directory, and it will then fallback to the framework/ directory if not
+ * found before giving up.
+ *
+ * This class is loosely based on the Symfony UniversalClassLoader.
+ *
+ * @author Fabien Potencier
+ * @author Jordi Boggiano
+ * @see http://www.php-fig.org/psr/psr-0/
+ * @see http://www.php-fig.org/psr/psr-4/
+ */
+class ClassLoader
+{
+ // PSR-4
+ private $prefixLengthsPsr4 = array();
+ private $prefixDirsPsr4 = array();
+ private $fallbackDirsPsr4 = array();
+
+ // PSR-0
+ private $prefixesPsr0 = array();
+ private $fallbackDirsPsr0 = array();
+
+ private $useIncludePath = false;
+ private $classMap = array();
+
+ private $classMapAuthoritative = false;
+
+ public function getPrefixes()
+ {
+ if (!empty($this->prefixesPsr0)) {
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
+ }
+
+ return array();
+ }
+
+ public function getPrefixesPsr4()
+ {
+ return $this->prefixDirsPsr4;
+ }
+
+ public function getFallbackDirs()
+ {
+ return $this->fallbackDirsPsr0;
+ }
+
+ public function getFallbackDirsPsr4()
+ {
+ return $this->fallbackDirsPsr4;
+ }
+
+ public function getClassMap()
+ {
+ return $this->classMap;
+ }
+
+ /**
+ * @param array $classMap Class to filename map
+ */
+ public function addClassMap(array $classMap)
+ {
+ if ($this->classMap) {
+ $this->classMap = array_merge($this->classMap, $classMap);
+ } else {
+ $this->classMap = $classMap;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix, either
+ * appending or prepending to the ones previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 root directories
+ * @param bool $prepend Whether to prepend the directories
+ */
+ public function add($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ if ($prepend) {
+ $this->fallbackDirsPsr0 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr0
+ );
+ } else {
+ $this->fallbackDirsPsr0 = array_merge(
+ $this->fallbackDirsPsr0,
+ (array) $paths
+ );
+ }
+
+ return;
+ }
+
+ $first = $prefix[0];
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
+
+ return;
+ }
+ if ($prepend) {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixesPsr0[$first][$prefix]
+ );
+ } else {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ $this->prefixesPsr0[$first][$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace, either
+ * appending or prepending to the ones previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-0 base directories
+ * @param bool $prepend Whether to prepend the directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function addPsr4($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ // Register directories for the root namespace.
+ if ($prepend) {
+ $this->fallbackDirsPsr4 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr4
+ );
+ } else {
+ $this->fallbackDirsPsr4 = array_merge(
+ $this->fallbackDirsPsr4,
+ (array) $paths
+ );
+ }
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
+ // Register directories for a new namespace.
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ } elseif ($prepend) {
+ // Prepend directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixDirsPsr4[$prefix]
+ );
+ } else {
+ // Append directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ $this->prefixDirsPsr4[$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix,
+ * replacing any others previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 base directories
+ */
+ public function set($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr0 = (array) $paths;
+ } else {
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace,
+ * replacing any others previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function setPsr4($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr4 = (array) $paths;
+ } else {
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Turns on searching the include path for class files.
+ *
+ * @param bool $useIncludePath
+ */
+ public function setUseIncludePath($useIncludePath)
+ {
+ $this->useIncludePath = $useIncludePath;
+ }
+
+ /**
+ * Can be used to check if the autoloader uses the include path to check
+ * for classes.
+ *
+ * @return bool
+ */
+ public function getUseIncludePath()
+ {
+ return $this->useIncludePath;
+ }
+
+ /**
+ * Turns off searching the prefix and fallback directories for classes
+ * that have not been registered with the class map.
+ *
+ * @param bool $classMapAuthoritative
+ */
+ public function setClassMapAuthoritative($classMapAuthoritative)
+ {
+ $this->classMapAuthoritative = $classMapAuthoritative;
+ }
+
+ /**
+ * Should class lookup fail if not found in the current class map?
+ *
+ * @return bool
+ */
+ public function isClassMapAuthoritative()
+ {
+ return $this->classMapAuthoritative;
+ }
+
+ /**
+ * Registers this instance as an autoloader.
+ *
+ * @param bool $prepend Whether to prepend the autoloader or not
+ */
+ public function register($prepend = false)
+ {
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
+ }
+
+ /**
+ * Unregisters this instance as an autoloader.
+ */
+ public function unregister()
+ {
+ spl_autoload_unregister(array($this, 'loadClass'));
+ }
+
+ /**
+ * Loads the given class or interface.
+ *
+ * @param string $class The name of the class
+ * @return bool|null True if loaded, null otherwise
+ */
+ public function loadClass($class)
+ {
+ if ($file = $this->findFile($class)) {
+ includeFile($file);
+
+ return true;
+ }
+ }
+
+ /**
+ * Finds the path to the file where the class is defined.
+ *
+ * @param string $class The name of the class
+ *
+ * @return string|false The path if found, false otherwise
+ */
+ public function findFile($class)
+ {
+ // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
+ if ('\\' == $class[0]) {
+ $class = substr($class, 1);
+ }
+
+ // class map lookup
+ if (isset($this->classMap[$class])) {
+ return $this->classMap[$class];
+ }
+ if ($this->classMapAuthoritative) {
+ return false;
+ }
+
+ $file = $this->findFileWithExtension($class, '.php');
+
+ // Search for Hack files if we are running on HHVM
+ if ($file === null && defined('HHVM_VERSION')) {
+ $file = $this->findFileWithExtension($class, '.hh');
+ }
+
+ if ($file === null) {
+ // Remember that this class does not exist.
+ return $this->classMap[$class] = false;
+ }
+
+ return $file;
+ }
+
+ private function findFileWithExtension($class, $ext)
+ {
+ // PSR-4 lookup
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
+
+ $first = $class[0];
+ if (isset($this->prefixLengthsPsr4[$first])) {
+ foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
+ if (0 === strpos($class, $prefix)) {
+ foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-4 fallback dirs
+ foreach ($this->fallbackDirsPsr4 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 lookup
+ if (false !== $pos = strrpos($class, '\\')) {
+ // namespaced class name
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
+ } else {
+ // PEAR-like class name
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
+ }
+
+ if (isset($this->prefixesPsr0[$first])) {
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
+ if (0 === strpos($class, $prefix)) {
+ foreach ($dirs as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-0 fallback dirs
+ foreach ($this->fallbackDirsPsr0 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 include paths.
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
+ return $file;
+ }
+ }
+}
+
+/**
+ * Scope isolated include.
+ *
+ * Prevents access to $this/self from included files.
+ */
+function includeFile($file)
+{
+ include $file;
+}
diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE
new file mode 100644
index 0000000..c8d57af
--- /dev/null
+++ b/vendor/composer/LICENSE
@@ -0,0 +1,21 @@
+
+Copyright (c) 2015 Nils Adermann, Jordi Boggiano
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
new file mode 100644
index 0000000..7a91153
--- /dev/null
+++ b/vendor/composer/autoload_classmap.php
@@ -0,0 +1,9 @@
+ $vendorDir . '/mf2/mf2/Mf2/Parser.php',
+);
diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php
new file mode 100644
index 0000000..b7fc012
--- /dev/null
+++ b/vendor/composer/autoload_namespaces.php
@@ -0,0 +1,9 @@
+ $path) {
+ $loader->set($namespace, $path);
+ }
+
+ $map = require __DIR__ . '/autoload_psr4.php';
+ foreach ($map as $namespace => $path) {
+ $loader->setPsr4($namespace, $path);
+ }
+
+ $classMap = require __DIR__ . '/autoload_classmap.php';
+ if ($classMap) {
+ $loader->addClassMap($classMap);
+ }
+
+ $loader->register(true);
+
+ $includeFiles = require __DIR__ . '/autoload_files.php';
+ foreach ($includeFiles as $fileIdentifier => $file) {
+ composerRequire577d2c76a8c0ae29d709c110dd8ca221($fileIdentifier, $file);
+ }
+
+ return $loader;
+ }
+}
+
+function composerRequire577d2c76a8c0ae29d709c110dd8ca221($fileIdentifier, $file)
+{
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
+ require $file;
+
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
+ }
+}
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
new file mode 100644
index 0000000..6b212c2
--- /dev/null
+++ b/vendor/composer/installed.json
@@ -0,0 +1,57 @@
+[
+ {
+ "name": "mf2/mf2",
+ "version": "v0.2.12",
+ "version_normalized": "0.2.12.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/indieweb/php-mf2.git",
+ "reference": "6701504876d6c9242eb310b35f41d40d9785ab4e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/indieweb/php-mf2/zipball/6701504876d6c9242eb310b35f41d40d9785ab4e",
+ "reference": "6701504876d6c9242eb310b35f41d40d9785ab4e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "3.7.*"
+ },
+ "suggest": {
+ "barnabywalters/mf-cleaner": "To more easily handle the canonical data php-mf2 gives you"
+ },
+ "time": "2015-07-12 14:10:01",
+ "bin": [
+ "bin/fetch-mf2",
+ "bin/parse-mf2"
+ ],
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "files": [
+ "Mf2/Parser.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Barnaby Walters",
+ "homepage": "http://waterpigs.co.uk"
+ }
+ ],
+ "description": "A pure, generic microformats2 parser — makes HTML as easy to consume as a JSON API",
+ "keywords": [
+ "html",
+ "microformats",
+ "microformats 2",
+ "parser",
+ "semantic"
+ ]
+ }
+]
diff --git a/vendor/mf2/mf2/.gitignore b/vendor/mf2/mf2/.gitignore
new file mode 100644
index 0000000..cb8f3db
--- /dev/null
+++ b/vendor/mf2/mf2/.gitignore
@@ -0,0 +1,7 @@
+.DS_Store
+/nbproject
+composer.phar
+/vendor/
+/tmp
+.idea/
+/bin/test
diff --git a/vendor/mf2/mf2/Mf2/Parser.php b/vendor/mf2/mf2/Mf2/Parser.php
new file mode 100644
index 0000000..b8a954f
--- /dev/null
+++ b/vendor/mf2/mf2/Mf2/Parser.php
@@ -0,0 +1,1441 @@
+Barnaby Walters');
+ * echo json_encode($output, JSON_PRETTY_PRINT);
+ *
+ * Produces:
+ *
+ * {
+ * "items": [
+ * {
+ * "type": ["h-card"],
+ * "properties": {
+ * "name": ["Barnaby Walters"]
+ * }
+ * }
+ * ],
+ * "rels": {}
+ * }
+ *
+ * @param string|DOMDocument $input The HTML string or DOMDocument object to parse
+ * @param string $url The URL the input document was found at, for relative URL resolution
+ * @param bool $convertClassic whether or not to convert classic microformats
+ * @return array Canonical MF2 array structure
+ */
+function parse($input, $url = null, $convertClassic = true) {
+ $parser = new Parser($input, $url);
+ return $parser->parse($convertClassic);
+}
+
+/**
+ * Fetch microformats2
+ *
+ * Given a URL, fetches it (following up to 5 redirects) and, if the content-type appears to be HTML, returns the parsed
+ * microformats2 array structure.
+ *
+ * Not that even if the response code was a 4XX or 5XX error, if the content-type is HTML-like then it will be parsed
+ * all the same, as there are legitimate cases where error pages might contain useful microformats (for example a deleted
+ * h-entry resulting in a 410 Gone page with a stub h-entry explaining the reason for deletion). Look in $curlInfo['http_code']
+ * for the actual value.
+ *
+ * @param string $url The URL to fetch
+ * @param bool $convertClassic (optional, default true) whether or not to convert classic microformats
+ * @param &array $curlInfo (optional) the results of curl_getinfo will be placed in this variable for debugging
+ * @return array|null canonical microformats2 array structure on success, null on failure
+ */
+function fetch($url, $convertClassic = true, &$curlInfo=null) {
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, $url);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($ch, CURLOPT_HEADER, 0);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
+ curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
+ $html = curl_exec($ch);
+ $info = $curlInfo = curl_getinfo($ch);
+ curl_close($ch);
+
+ if (strpos(strtolower($info['content_type']), 'html') === false) {
+ // The content was not delivered as HTML, do not attempt to parse it.
+ return null;
+ }
+
+ return parse($html, $url, $convertClassic);
+}
+
+/**
+ * Unicode to HTML Entities
+ * @param string $input String containing characters to convert into HTML entities
+ * @return string
+ */
+function unicodeToHtmlEntities($input) {
+ return mb_convert_encoding($input, 'HTML-ENTITIES', mb_detect_encoding($input));
+}
+
+/**
+ * Collapse Whitespace
+ *
+ * Collapses any sequences of whitespace within a string into a single space
+ * character.
+ *
+ * @deprecated since v0.2.3
+ * @param string $str
+ * @return string
+ */
+function collapseWhitespace($str) {
+ return preg_replace('/[\s|\n]+/', ' ', $str);
+}
+
+function unicodeTrim($str) {
+ // this is cheating. TODO: find a better way if this causes any problems
+ $str = str_replace(mb_convert_encoding(' ', 'UTF-8', 'HTML-ENTITIES'), ' ', $str);
+ $str = preg_replace('/^\s+/', '', $str);
+ return preg_replace('/\s+$/', '', $str);
+}
+
+/**
+ * Microformat Name From Class string
+ *
+ * Given the value of @class, get the relevant mf classnames (e.g. h-card,
+ * p-name).
+ *
+ * @param string $class A space delimited list of classnames
+ * @param string $prefix The prefix to look for
+ * @return string|array The prefixed name of the first microfomats class found or false
+ */
+function mfNamesFromClass($class, $prefix='h-') {
+ $class = str_replace(array(' ', ' ', "\n"), ' ', $class);
+ $classes = explode(' ', $class);
+ $matches = array();
+
+ foreach ($classes as $classname) {
+ $compare_classname = ' ' . $classname;
+ $compare_prefix = ' ' . $prefix;
+ if (strstr($compare_classname, $compare_prefix) !== false && ($compare_classname != $compare_prefix)) {
+ $matches[] = ($prefix === 'h-') ? $classname : substr($classname, strlen($prefix));
+ }
+ }
+
+ return $matches;
+}
+
+/**
+ * Get Nested µf Property Name From Class
+ *
+ * Returns all the p-, u-, dt- or e- prefixed classnames it finds in a
+ * space-separated string.
+ *
+ * @param string $class
+ * @return array
+ */
+function nestedMfPropertyNamesFromClass($class) {
+ $prefixes = array('p-', 'u-', 'dt-', 'e-');
+ $propertyNames = array();
+
+ $class = str_replace(array(' ', ' ', "\n"), ' ', $class);
+ foreach (explode(' ', $class) as $classname) {
+ foreach ($prefixes as $prefix) {
+ // Check if $classname is a valid property classname for $prefix.
+ if (mb_substr($classname, 0, mb_strlen($prefix)) == $prefix && $classname != $prefix) {
+ $propertyName = mb_substr($classname, mb_strlen($prefix));
+ $propertyNames[$propertyName][] = $prefix;
+ }
+ }
+ }
+
+ foreach ($propertyNames as $property => $prefixes) {
+ $propertyNames[$property] = array_unique($prefixes);
+ }
+
+ return $propertyNames;
+}
+
+/**
+ * Wraps mfNamesFromClass to handle an element as input (common)
+ *
+ * @param DOMElement $e The element to get the classname for
+ * @param string $prefix The prefix to look for
+ * @return mixed See return value of mf2\Parser::mfNameFromClass()
+ */
+function mfNamesFromElement(\DOMElement $e, $prefix = 'h-') {
+ $class = $e->getAttribute('class');
+ return mfNamesFromClass($class, $prefix);
+}
+
+/**
+ * Wraps nestedMfPropertyNamesFromClass to handle an element as input
+ */
+function nestedMfPropertyNamesFromElement(\DOMElement $e) {
+ $class = $e->getAttribute('class');
+ return nestedMfPropertyNamesFromClass($class);
+}
+
+/**
+ * Converts various time formats to HH:MM
+ * @param string $time The time to convert
+ * @return string
+ */
+function convertTimeFormat($time) {
+ $hh = $mm = $ss = '';
+ preg_match('/(\d{1,2}):?(\d{2})?:?(\d{2})?(a\.?m\.?|p\.?m\.?)?/i', $time, $matches);
+
+ // If no am/pm is specified:
+ if (empty($matches[4])) {
+ return $time;
+ } else {
+ // Otherwise, am/pm is specified.
+ $meridiem = strtolower(str_replace('.', '', $matches[4]));
+
+ // Hours.
+ $hh = $matches[1];
+
+ // Add 12 to hours if pm applies.
+ if ($meridiem == 'pm' && ($hh < 12)) {
+ $hh += 12;
+ }
+
+ $hh = str_pad($hh, 2, '0', STR_PAD_LEFT);
+
+ // Minutes.
+ $mm = (empty($matches[2]) ) ? '00' : $matches[2];
+
+ // Seconds, only if supplied.
+ if (!empty($matches[3])) {
+ $ss = $matches[3];
+ }
+
+ if (empty($ss)) {
+ return sprintf('%s:%s', $hh, $mm);
+ }
+ else {
+ return sprintf('%s:%s:%s', $hh, $mm, $ss);
+ }
+ }
+}
+
+/**
+ * Microformats2 Parser
+ *
+ * A class which holds state for parsing microformats2 from HTML.
+ *
+ * Example usage:
+ *
+ * use Mf2;
+ * $parser = new Mf2\Parser('
Barnaby Walters
');
+ * $output = $parser->parse();
+ */
+class Parser {
+ /** @var string The baseurl (if any) to use for this parse */
+ public $baseurl;
+
+ /** @var DOMXPath object which can be used to query over any fragment*/
+ public $xpath;
+
+ /** @var DOMDocument */
+ public $doc;
+
+ /** @var SplObjectStorage */
+ protected $parsed;
+
+ public $jsonMode;
+
+ /**
+ * Constructor
+ *
+ * @param DOMDocument|string $input The data to parse. A string of HTML or a DOMDocument
+ * @param string $url The URL of the parsed document, for relative URL resolution
+ * @param boolean $jsonMode Whether or not to use a stdClass instance for an empty `rels` dictionary. This breaks PHP looping over rels, but allows the output to be correctly serialized as JSON.
+ */
+ public function __construct($input, $url = null, $jsonMode = false) {
+ libxml_use_internal_errors(true);
+ if (is_string($input)) {
+ $doc = new DOMDocument();
+ @$doc->loadHTML(unicodeToHtmlEntities($input));
+ } elseif (is_a($input, 'DOMDocument')) {
+ $doc = $input;
+ } else {
+ $doc = new DOMDocument();
+ @$doc->loadHTML('');
+ }
+
+ $this->xpath = new DOMXPath($doc);
+
+ $baseurl = $url;
+ foreach ($this->xpath->query('//base[@href]') as $base) {
+ $baseElementUrl = $base->getAttribute('href');
+
+ if (parse_url($baseElementUrl, PHP_URL_SCHEME) === null) {
+ /* The base element URL is relative to the document URL.
+ *
+ * :/
+ *
+ * Perhaps the author was high? */
+
+ $baseurl = resolveUrl($url, $baseElementUrl);
+ } else {
+ $baseurl = $baseElementUrl;
+ }
+ break;
+ }
+
+ // Ignore elements as per the HTML5 spec
+ foreach ($this->xpath->query('//template') as $templateEl) {
+ $templateEl->parentNode->removeChild($templateEl);
+ }
+
+ $this->baseurl = $baseurl;
+ $this->doc = $doc;
+ $this->parsed = new SplObjectStorage();
+ $this->jsonMode = $jsonMode;
+ }
+
+ private function elementPrefixParsed(\DOMElement $e, $prefix) {
+ if (!$this->parsed->contains($e))
+ $this->parsed->attach($e, array());
+
+ $prefixes = $this->parsed[$e];
+ $prefixes[] = $prefix;
+ $this->parsed[$e] = $prefixes;
+ }
+
+ private function isElementParsed(\DOMElement $e, $prefix) {
+ if (!$this->parsed->contains($e))
+ return false;
+
+ $prefixes = $this->parsed[$e];
+
+ if (!in_array($prefix, $prefixes))
+ return false;
+
+ return true;
+ }
+
+ private function resolveChildUrls(DOMElement $el) {
+ $hyperlinkChildren = $this->xpath->query('.//*[@src or @href or @data]', $el);
+
+ foreach ($hyperlinkChildren as $child) {
+ if ($child->hasAttribute('href'))
+ $child->setAttribute('href', $this->resolveUrl($child->getAttribute('href')));
+ if ($child->hasAttribute('src'))
+ $child->setAttribute('src', $this->resolveUrl($child->getAttribute('src')));
+ if ($child->hasAttribute('data'))
+ $child->setAttribute('data', $this->resolveUrl($child->getAttribute('data')));
+ }
+ }
+
+ public function textContent(DOMElement $el) {
+ $this->resolveChildUrls($el);
+
+ $clonedEl = $el->cloneNode(true);
+
+ foreach ($this->xpath->query('.//img', $clonedEl) as $imgEl) {
+ $newNode = $this->doc->createTextNode($imgEl->getAttribute($imgEl->hasAttribute('alt') ? 'alt' : 'src'));
+ $imgEl->parentNode->replaceChild($newNode, $imgEl);
+ }
+
+ return $clonedEl->textContent;
+ }
+
+ // TODO: figure out if this has problems with sms: and geo: URLs
+ public function resolveUrl($url) {
+ // If the URL is seriously malformed it’s probably beyond the scope of this
+ // parser to try to do anything with it.
+ if (parse_url($url) === false)
+ return $url;
+
+ $scheme = parse_url($url, PHP_URL_SCHEME);
+
+ if (empty($scheme) and !empty($this->baseurl)) {
+ return resolveUrl($this->baseurl, $url);
+ } else {
+ return $url;
+ }
+ }
+
+ // Parsing Functions
+
+ /**
+ * Parse value-class/value-title on an element, joining with $separator if
+ * there are multiple.
+ *
+ * @param \DOMElement $e
+ * @param string $separator = '' if multiple value-title elements, join with this string
+ * @return string|null the parsed value or null if value-class or -title aren’t in use
+ */
+ public function parseValueClassTitle(\DOMElement $e, $separator = '') {
+ $valueClassElements = $this->xpath->query('./*[contains(concat(" ", @class, " "), " value ")]', $e);
+
+ if ($valueClassElements->length !== 0) {
+ // Process value-class stuff
+ $val = '';
+ foreach ($valueClassElements as $el) {
+ $val .= $this->textContent($el);
+ }
+
+ return unicodeTrim($val);
+ }
+
+ $valueTitleElements = $this->xpath->query('./*[contains(concat(" ", @class, " "), " value-title ")]', $e);
+
+ if ($valueTitleElements->length !== 0) {
+ // Process value-title stuff
+ $val = '';
+ foreach ($valueTitleElements as $el) {
+ $val .= $el->getAttribute('title');
+ }
+
+ return unicodeTrim($val);
+ }
+
+ // No value-title or -class in this element
+ return null;
+ }
+
+ /**
+ * Given an element with class="p-*", get it’s value
+ *
+ * @param DOMElement $p The element to parse
+ * @return string The plaintext value of $p, dependant on type
+ * @todo Make this adhere to value-class
+ */
+ public function parseP(\DOMElement $p) {
+ $classTitle = $this->parseValueClassTitle($p, ' ');
+
+ if ($classTitle !== null)
+ return $classTitle;
+
+ if ($p->tagName == 'img' and $p->getAttribute('alt') !== '') {
+ $pValue = $p->getAttribute('alt');
+ } elseif ($p->tagName == 'area' and $p->getAttribute('alt') !== '') {
+ $pValue = $p->getAttribute('alt');
+ } elseif ($p->tagName == 'abbr' and $p->getAttribute('title') !== '') {
+ $pValue = $p->getAttribute('title');
+ } elseif (in_array($p->tagName, array('data', 'input')) and $p->getAttribute('value') !== '') {
+ $pValue = $p->getAttribute('value');
+ } else {
+ $pValue = unicodeTrim($this->textContent($p));
+ }
+
+ return $pValue;
+ }
+
+ /**
+ * Given an element with class="u-*", get the value of the URL
+ *
+ * @param DOMElement $u The element to parse
+ * @return string The plaintext value of $u, dependant on type
+ * @todo make this adhere to value-class
+ */
+ public function parseU(\DOMElement $u) {
+ if (($u->tagName == 'a' or $u->tagName == 'area') and $u->getAttribute('href') !== null) {
+ $uValue = $u->getAttribute('href');
+ } elseif (in_array($u->tagName, array('img', 'audio', 'video', 'source')) and $u->getAttribute('src') !== null) {
+ $uValue = $u->getAttribute('src');
+ } elseif ($u->tagName == 'object' and $u->getAttribute('data') !== null) {
+ $uValue = $u->getAttribute('data');
+ }
+
+ if (isset($uValue)) {
+ return $this->resolveUrl($uValue);
+ }
+
+ $classTitle = $this->parseValueClassTitle($u);
+
+ if ($classTitle !== null) {
+ return $classTitle;
+ } elseif ($u->tagName == 'abbr' and $u->getAttribute('title') !== null) {
+ return $u->getAttribute('title');
+ } elseif (in_array($u->tagName, array('data', 'input')) and $u->getAttribute('value') !== null) {
+ return $u->getAttribute('value');
+ } else {
+ return unicodeTrim($this->textContent($u));
+ }
+ }
+
+ /**
+ * Given an element with class="dt-*", get the value of the datetime as a php date object
+ *
+ * @param DOMElement $dt The element to parse
+ * @param array $dates Array of dates processed so far
+ * @return string The datetime string found
+ */
+ public function parseDT(\DOMElement $dt, &$dates = array()) {
+ // Check for value-class pattern
+ $valueClassChildren = $this->xpath->query('./*[contains(concat(" ", @class, " "), " value ") or contains(concat(" ", @class, " "), " value-title ")]', $dt);
+ $dtValue = false;
+
+ if ($valueClassChildren->length > 0) {
+ // They’re using value-class
+ $dateParts = array();
+
+ foreach ($valueClassChildren as $e) {
+ if (strstr(' ' . $e->getAttribute('class') . ' ', ' value-title ')) {
+ $title = $e->getAttribute('title');
+ if (!empty($title))
+ $dateParts[] = $title;
+ }
+ elseif ($e->tagName == 'img' or $e->tagName == 'area') {
+ // Use @alt
+ $alt = $e->getAttribute('alt');
+ if (!empty($alt))
+ $dateParts[] = $alt;
+ }
+ elseif ($e->tagName == 'data') {
+ // Use @value, otherwise innertext
+ $value = $e->hasAttribute('value') ? $e->getAttribute('value') : unicodeTrim($e->nodeValue);
+ if (!empty($value))
+ $dateParts[] = $value;
+ }
+ elseif ($e->tagName == 'abbr') {
+ // Use @title, otherwise innertext
+ $title = $e->hasAttribute('title') ? $e->getAttribute('title') : unicodeTrim($e->nodeValue);
+ if (!empty($title))
+ $dateParts[] = $title;
+ }
+ elseif ($e->tagName == 'del' or $e->tagName == 'ins' or $e->tagName == 'time') {
+ // Use @datetime if available, otherwise innertext
+ $dtAttr = ($e->hasAttribute('datetime')) ? $e->getAttribute('datetime') : unicodeTrim($e->nodeValue);
+ if (!empty($dtAttr))
+ $dateParts[] = $dtAttr;
+ }
+ else {
+ if (!empty($e->nodeValue))
+ $dateParts[] = unicodeTrim($e->nodeValue);
+ }
+ }
+
+ // Look through dateParts
+ $datePart = '';
+ $timePart = '';
+ foreach ($dateParts as $part) {
+ // Is this part a full ISO8601 datetime?
+ if (preg_match('/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?(?:Z?[+|-]\d{2}:?\d{2})?$/', $part)) {
+ // Break completely, we’ve got our value.
+ $dtValue = $part;
+ break;
+ } else {
+ // Is the current part a valid time(+TZ?) AND no other time representation has been found?
+ if ((preg_match('/\d{1,2}:\d{1,2}(Z?[+|-]\d{2}:?\d{2})?/', $part) or preg_match('/\d{1,2}[a|p]m/', $part)) and empty($timePart)) {
+ $timePart = $part;
+ } elseif (preg_match('/\d{4}-\d{2}-\d{2}/', $part) and empty($datePart)) {
+ // Is the current part a valid date AND no other date representation has been found?
+ $datePart = $part;
+ }
+
+ if ( !empty($datePart) && !in_array($datePart, $dates) ) {
+ $dates[] = $datePart;
+ }
+
+ $dtValue = '';
+
+ if ( empty($datePart) && !empty($timePart) ) {
+ $timePart = convertTimeFormat($timePart);
+ $dtValue = unicodeTrim($timePart, 'T');
+ }
+ else if ( !empty($datePart) && empty($timePart) ) {
+ $dtValue = rtrim($datePart, 'T');
+ }
+ else {
+ $timePart = convertTimeFormat($timePart);
+ $dtValue = rtrim($datePart, 'T') . 'T' . unicodeTrim($timePart, 'T');
+ }
+ }
+ }
+ } else {
+ // Not using value-class (phew).
+ if ($dt->tagName == 'img' or $dt->tagName == 'area') {
+ // Use @alt
+ // Is it an entire dt?
+ $alt = $dt->getAttribute('alt');
+ if (!empty($alt))
+ $dtValue = $alt;
+ } elseif (in_array($dt->tagName, array('data'))) {
+ // Use @value, otherwise innertext
+ // Is it an entire dt?
+ $value = $dt->getAttribute('value');
+ if (!empty($value))
+ $dtValue = $value;
+ else
+ $dtValue = $dt->nodeValue;
+ } elseif ($dt->tagName == 'abbr') {
+ // Use @title, otherwise innertext
+ // Is it an entire dt?
+ $title = $dt->getAttribute('title');
+ if (!empty($title))
+ $dtValue = $title;
+ else
+ $dtValue = $dt->nodeValue;
+ } elseif ($dt->tagName == 'del' or $dt->tagName == 'ins' or $dt->tagName == 'time') {
+ // Use @datetime if available, otherwise innertext
+ // Is it an entire dt?
+ $dtAttr = $dt->getAttribute('datetime');
+ if (!empty($dtAttr))
+ $dtValue = $dtAttr;
+ else
+ $dtValue = $dt->nodeValue;
+ } else {
+ $dtValue = $dt->nodeValue;
+ }
+
+ if (preg_match('/(\d{4}-\d{2}-\d{2})/', $dtValue, $matches)) {
+ $dates[] = $matches[0];
+ }
+ }
+
+ /**
+ * if $dtValue is only a time and there are recently parsed dates,
+ * form the full date-time using the most recently parsed dt- value
+ */
+ if ((preg_match('/^\d{1,2}:\d{1,2}(Z?[+|-]\d{2}:?\d{2})?/', $dtValue) or preg_match('/^\d{1,2}[a|p]m/', $dtValue)) && !empty($dates)) {
+ $dtValue = convertTimeFormat($dtValue);
+ $dtValue = end($dates) . 'T' . unicodeTrim($dtValue, 'T');
+ }
+
+ return $dtValue;
+ }
+
+ /**
+ * Given the root element of some embedded markup, return a string representing that markup
+ *
+ * @param DOMElement $e The element to parse
+ * @return string $e’s innerHTML
+ *
+ * @todo need to mark this element as e- parsed so it doesn’t get parsed as it’s parent’s e-* too
+ */
+ public function parseE(\DOMElement $e) {
+ $classTitle = $this->parseValueClassTitle($e);
+
+ if ($classTitle !== null)
+ return $classTitle;
+
+ // Expand relative URLs within children of this element
+ // TODO: as it is this is not relative to only children, make this .// and rerun tests
+ $this->resolveChildUrls($e);
+
+ $html = '';
+ foreach ($e->childNodes as $node) {
+ $html .= $node->C14N();
+ }
+
+ return array(
+ 'html' => $html,
+ 'value' => unicodeTrim($this->textContent($e))
+ );
+ }
+
+ /**
+ * Recursively parse microformats
+ *
+ * @param DOMElement $e The element to parse
+ * @return array A representation of the values contained within microformat $e
+ */
+ public function parseH(\DOMElement $e) {
+ // If it’s already been parsed (e.g. is a child mf), skip
+ if ($this->parsed->contains($e))
+ return null;
+
+ // Get current µf name
+ $mfTypes = mfNamesFromElement($e, 'h-');
+
+ // Initalise var to store the representation in
+ $return = array();
+ $children = array();
+ $dates = array();
+
+ // Handle nested microformats (h-*)
+ foreach ($this->xpath->query('.//*[contains(concat(" ", @class)," h-")]', $e) as $subMF) {
+ // Parse
+ $result = $this->parseH($subMF);
+
+ // If result was already parsed, skip it
+ if (null === $result)
+ continue;
+
+ // In most cases, the value attribute of the nested microformat should be the p- parsed value of the elemnt.
+ // The only times this is different is when the microformat is nested under certain prefixes, which are handled below.
+ $result['value'] = $this->parseP($subMF);
+
+ // Does this µf have any property names other than h-*?
+ $properties = nestedMfPropertyNamesFromElement($subMF);
+
+ if (!empty($properties)) {
+ // Yes! It’s a nested property µf
+ foreach ($properties as $property => $prefixes) {
+ // Note: handling microformat nesting under multiple conflicting prefixes is not currently specified by the mf2 parsing spec.
+ $prefixSpecificResult = $result;
+ if (in_array('p-', $prefixes)) {
+ $prefixSpecificResult['value'] = $prefixSpecificResult['properties']['name'][0];
+ } elseif (in_array('e-', $prefixes)) {
+ $eParsedResult = $this->parseE($subMF);
+ $prefixSpecificResult['html'] = $eParsedResult['html'];
+ $prefixSpecificResult['value'] = $eParsedResult['value'];
+ } elseif (in_array('u-', $prefixes)) {
+ $prefixSpecificResult['value'] = $this->parseU($subMF);
+ }
+ $return[$property][] = $prefixSpecificResult;
+ }
+ } else {
+ // No, it’s a child µf
+ $children[] = $result;
+ }
+
+ // Make sure this sub-mf won’t get parsed as a µf or property
+ // TODO: Determine if clearing this is required?
+ $this->elementPrefixParsed($subMF, 'h');
+ $this->elementPrefixParsed($subMF, 'p');
+ $this->elementPrefixParsed($subMF, 'u');
+ $this->elementPrefixParsed($subMF, 'dt');
+ $this->elementPrefixParsed($subMF, 'e');
+ }
+
+ if($e->tagName == 'area') {
+ $coords = $e->getAttribute('coords');
+ $shape = $e->getAttribute('shape');
+ }
+
+ // Handle p-*
+ foreach ($this->xpath->query('.//*[contains(concat(" ", @class) ," p-")]', $e) as $p) {
+ if ($this->isElementParsed($p, 'p'))
+ continue;
+
+ $pValue = $this->parseP($p);
+
+ // Add the value to the array for it’s p- properties
+ foreach (mfNamesFromElement($p, 'p-') as $propName) {
+ if (!empty($propName))
+ $return[$propName][] = $pValue;
+ }
+
+ // Make sure this sub-mf won’t get parsed as a top level mf
+ $this->elementPrefixParsed($p, 'p');
+ }
+
+ // Handle u-*
+ foreach ($this->xpath->query('.//*[contains(concat(" ", @class)," u-")]', $e) as $u) {
+ if ($this->isElementParsed($u, 'u'))
+ continue;
+
+ $uValue = $this->parseU($u);
+
+ // Add the value to the array for it’s property types
+ foreach (mfNamesFromElement($u, 'u-') as $propName) {
+ $return[$propName][] = $uValue;
+ }
+
+ // Make sure this sub-mf won’t get parsed as a top level mf
+ $this->elementPrefixParsed($u, 'u');
+ }
+
+ // Handle dt-*
+ foreach ($this->xpath->query('.//*[contains(concat(" ", @class), " dt-")]', $e) as $dt) {
+ if ($this->isElementParsed($dt, 'dt'))
+ continue;
+
+ $dtValue = $this->parseDT($dt, $dates);
+
+ if ($dtValue) {
+ // Add the value to the array for dt- properties
+ foreach (mfNamesFromElement($dt, 'dt-') as $propName) {
+ $return[$propName][] = $dtValue;
+ }
+ }
+
+ // Make sure this sub-mf won’t get parsed as a top level mf
+ $this->elementPrefixParsed($dt, 'dt');
+ }
+
+ // Handle e-*
+ foreach ($this->xpath->query('.//*[contains(concat(" ", @class)," e-")]', $e) as $em) {
+ if ($this->isElementParsed($em, 'e'))
+ continue;
+
+ $eValue = $this->parseE($em);
+
+ if ($eValue) {
+ // Add the value to the array for e- properties
+ foreach (mfNamesFromElement($em, 'e-') as $propName) {
+ $return[$propName][] = $eValue;
+ }
+ }
+ // Make sure this sub-mf won’t get parsed as a top level mf
+ $this->elementPrefixParsed($em, 'e');
+ }
+
+ // Implied Properties
+ // Check for p-name
+ if (!array_key_exists('name', $return)) {
+ try {
+ // Look for img @alt
+ if (($e->tagName == 'img' or $e->tagName == 'area') and $e->getAttribute('alt') != '')
+ throw new Exception($e->getAttribute('alt'));
+
+ if ($e->tagName == 'abbr' and $e->hasAttribute('title'))
+ throw new Exception($e->getAttribute('title'));
+
+ // Look for nested img @alt
+ foreach ($this->xpath->query('./img[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames) && $em->getAttribute('alt') != '') {
+ throw new Exception($em->getAttribute('alt'));
+ }
+ }
+
+ // Look for nested area @alt
+ foreach ($this->xpath->query('./area[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames) && $em->getAttribute('alt') != '') {
+ throw new Exception($em->getAttribute('alt'));
+ }
+ }
+
+
+ // Look for double nested img @alt
+ foreach ($this->xpath->query('./*[count(preceding-sibling::*)+count(following-sibling::*)=0]/img[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames) && $em->getAttribute('alt') != '') {
+ throw new Exception($em->getAttribute('alt'));
+ }
+ }
+
+ // Look for double nested img @alt
+ foreach ($this->xpath->query('./*[count(preceding-sibling::*)+count(following-sibling::*)=0]/area[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames) && $em->getAttribute('alt') != '') {
+ throw new Exception($em->getAttribute('alt'));
+ }
+ }
+
+ throw new Exception($e->nodeValue);
+ } catch (Exception $exc) {
+ $return['name'][] = unicodeTrim($exc->getMessage());
+ }
+ }
+
+ // Check for u-photo
+ if (!array_key_exists('photo', $return)) {
+ // Look for img @src
+ try {
+ if ($e->tagName == 'img')
+ throw new Exception($e->getAttribute('src'));
+
+ // Look for nested img @src
+ foreach ($this->xpath->query('./img[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ if ($em->getAttribute('src') != '')
+ throw new Exception($em->getAttribute('src'));
+ }
+
+ // Look for double nested img @src
+ foreach ($this->xpath->query('./*[count(preceding-sibling::*)+count(following-sibling::*)=0]/img[count(preceding-sibling::*)+count(following-sibling::*)=0]', $e) as $em) {
+ if ($em->getAttribute('src') != '')
+ throw new Exception($em->getAttribute('src'));
+ }
+ } catch (Exception $exc) {
+ $return['photo'][] = $this->resolveUrl($exc->getMessage());
+ }
+ }
+
+ // Check for u-url
+ if (!array_key_exists('url', $return)) {
+ // Look for img @src
+ if ($e->tagName == 'a' or $e->tagName == 'area')
+ $url = $e->getAttribute('href');
+
+ // Look for nested a @href
+ foreach ($this->xpath->query('./a[count(preceding-sibling::a)+count(following-sibling::a)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames)) {
+ $url = $em->getAttribute('href');
+ break;
+ }
+ }
+
+ // Look for nested area @src
+ foreach ($this->xpath->query('./area[count(preceding-sibling::area)+count(following-sibling::area)=0]', $e) as $em) {
+ $emNames = mfNamesFromElement($em, 'h-');
+ if (empty($emNames)) {
+ $url = $em->getAttribute('href');
+ break;
+ }
+ }
+
+ if (!empty($url))
+ $return['url'][] = $this->resolveUrl($url);
+ }
+
+ // Make sure things are in alphabetical order
+ sort($mfTypes);
+
+ // Phew. Return the final result.
+ $parsed = array(
+ 'type' => $mfTypes,
+ 'properties' => $return
+ );
+
+ if (!empty($shape)) {
+ $parsed['shape'] = $shape;
+ }
+
+ if (!empty($coords)) {
+ $parsed['coords'] = $coords;
+ }
+
+ if (!empty($children)) {
+ $parsed['children'] = array_values(array_filter($children));
+ }
+ return $parsed;
+ }
+
+ /**
+ * Parse Rels and Alternatives
+ *
+ * Returns [$rels, $alternatives]. If the $rels value is to be empty, i.e. there are no links on the page
+ * with a rel value *not* containing `alternate`, then the type of $rels depends on $this->jsonMode. If set
+ * to true, it will be a stdClass instance, optimising for JSON serialisation. Otherwise (the default case),
+ * it will be an empty array.
+ */
+ public function parseRelsAndAlternates() {
+ $rels = array();
+ $alternates = array();
+
+ // Iterate through all a, area and link elements with rel attributes
+ foreach ($this->xpath->query('//*[@rel and @href]') as $hyperlink) {
+ if ($hyperlink->getAttribute('rel') == '')
+ continue;
+
+ // Resolve the href
+ $href = $this->resolveUrl($hyperlink->getAttribute('href'));
+
+ // Split up the rel into space-separated values
+ $linkRels = array_filter(explode(' ', $hyperlink->getAttribute('rel')));
+
+ // If alternate in rels, create alternate structure, append
+ if (in_array('alternate', $linkRels)) {
+ $alt = array(
+ 'url' => $href,
+ 'rel' => implode(' ', array_diff($linkRels, array('alternate')))
+ );
+ if ($hyperlink->hasAttribute('media'))
+ $alt['media'] = $hyperlink->getAttribute('media');
+
+ if ($hyperlink->hasAttribute('hreflang'))
+ $alt['hreflang'] = $hyperlink->getAttribute('hreflang');
+
+ if ($hyperlink->hasAttribute('title'))
+ $alt['title'] = $hyperlink->getAttribute('title');
+
+ if ($hyperlink->hasAttribute('type'))
+ $alt['type'] = $hyperlink->getAttribute('type');
+
+ if ($hyperlink->nodeValue)
+ $alt['text'] = $hyperlink->nodeValue;
+
+ $alternates[] = $alt;
+ } else {
+ foreach ($linkRels as $rel) {
+ $rels[$rel][] = $href;
+ }
+ }
+ }
+
+ if (empty($rels) and $this->jsonMode) {
+ $rels = new stdClass();
+ }
+
+ return array($rels, $alternates);
+ }
+
+ /**
+ * Kicks off the parsing routine
+ *
+ * If `$htmlSafe` is set, any angle brackets in the results from non e-* properties
+ * will be HTML-encoded, bringing all output to the same level of encoding.
+ *
+ * If a DOMElement is set as the $context, only descendants of that element will
+ * be parsed for microformats.
+ *
+ * @param bool $htmlSafe whether or not to html-encode non e-* properties. Defaults to false
+ * @param DOMElement $context optionally an element from which to parse microformats
+ * @return array An array containing all the µfs found in the current document
+ */
+ public function parse($convertClassic = true, DOMElement $context = null) {
+ $mfs = array();
+
+ if ($convertClassic) {
+ $this->convertLegacy();
+ }
+
+ $mfElements = null === $context
+ ? $this->xpath->query('//*[contains(concat(" ", @class), " h-")]')
+ : $this->xpath->query('.//*[contains(concat(" ", @class), " h-")]', $context);
+
+ // Parser microformats
+ foreach ($mfElements as $node) {
+ // For each microformat
+ $result = $this->parseH($node);
+
+ // Add the value to the array for this property type
+ $mfs[] = $result;
+ }
+
+ // Parse rels
+ list($rels, $alternates) = $this->parseRelsAndAlternates();
+
+ $top = array(
+ 'items' => array_values(array_filter($mfs)),
+ 'rels' => $rels
+ );
+
+ if (count($alternates))
+ $top['alternates'] = $alternates;
+
+ return $top;
+ }
+
+ /**
+ * Parse From ID
+ *
+ * Given an ID, parse all microformats which are children of the element with
+ * that ID.
+ *
+ * Note that rel values are still document-wide.
+ *
+ * If an element with the ID is not found, an empty skeleton mf2 array structure
+ * will be returned.
+ *
+ * @param string $id
+ * @param bool $htmlSafe = false whether or not to HTML-encode angle brackets in non e-* properties
+ * @return array
+ */
+ public function parseFromId($id, $convertClassic=true) {
+ $matches = $this->xpath->query("//*[@id='{$id}']");
+
+ if (empty($matches))
+ return array('items' => array(), 'rels' => array(), 'alternates' => array());
+
+ return $this->parse($convertClassic, $matches->item(0));
+ }
+
+ /**
+ * Convert Legacy Classnames
+ *
+ * Adds microformats2 classnames into a document containing only legacy
+ * semantic classnames.
+ *
+ * @return Parser $this
+ */
+ public function convertLegacy() {
+ $doc = $this->doc;
+ $xp = new DOMXPath($doc);
+
+ // replace all roots
+ foreach ($this->classicRootMap as $old => $new) {
+ foreach ($xp->query('//*[contains(concat(" ", @class, " "), " ' . $old . ' ") and not(contains(concat(" ", @class, " "), " ' . $new . ' "))]') as $el) {
+ $el->setAttribute('class', $el->getAttribute('class') . ' ' . $new);
+ }
+ }
+
+ foreach ($this->classicPropertyMap as $oldRoot => $properties) {
+ $newRoot = $this->classicRootMap[$oldRoot];
+ foreach ($properties as $old => $new) {
+ foreach ($xp->query('//*[contains(concat(" ", @class, " "), " ' . $oldRoot . ' ")]//*[contains(concat(" ", @class, " "), " ' . $old . ' ") and not(contains(concat(" ", @class, " "), " ' . $new . ' "))]') as $el) {
+ $el->setAttribute('class', $el->getAttribute('class') . ' ' . $new);
+ }
+ }
+ }
+
+ return $this;
+ }
+
+ /**
+ * XPath Query
+ *
+ * Runs an XPath query over the current document. Works in exactly the same
+ * way as DOMXPath::query.
+ *
+ * @param string $expression
+ * @param DOMNode $context
+ * @return DOMNodeList
+ */
+ public function query($expression, $context = null) {
+ return $this->xpath->query($expression, $context);
+ }
+
+ /**
+ * Classic Root Classname map
+ */
+ public $classicRootMap = array(
+ 'vcard' => 'h-card',
+ 'hfeed' => 'h-feed',
+ 'hentry' => 'h-entry',
+ 'hrecipe' => 'h-recipe',
+ 'hresume' => 'h-resume',
+ 'vevent' => 'h-event',
+ 'hreview' => 'h-review',
+ 'hproduct' => 'h-product'
+ );
+
+ public $classicPropertyMap = array(
+ 'vcard' => array(
+ 'fn' => 'p-name',
+ 'url' => 'u-url',
+ 'honorific-prefix' => 'p-honorific-prefix',
+ 'given-name' => 'p-given-name',
+ 'additional-name' => 'p-additional-name',
+ 'family-name' => 'p-family-name',
+ 'honorific-suffix' => 'p-honorific-suffix',
+ 'nickname' => 'p-nickname',
+ 'email' => 'u-email',
+ 'logo' => 'u-logo',
+ 'photo' => 'u-photo',
+ 'url' => 'u-url',
+ 'uid' => 'u-uid',
+ 'category' => 'p-category',
+ 'adr' => 'p-adr h-adr',
+ 'extended-address' => 'p-extended-address',
+ 'street-address' => 'p-street-address',
+ 'locality' => 'p-locality',
+ 'region' => 'p-region',
+ 'postal-code' => 'p-postal-code',
+ 'country-name' => 'p-country-name',
+ 'label' => 'p-label',
+ 'geo' => 'p-geo h-geo',
+ 'latitude' => 'p-latitude',
+ 'longitude' => 'p-longitude',
+ 'tel' => 'p-tel',
+ 'note' => 'p-note',
+ 'bday' => 'dt-bday',
+ 'key' => 'u-key',
+ 'org' => 'p-org',
+ 'organization-name' => 'p-organization-name',
+ 'organization-unit' => 'p-organization-unit',
+ ),
+ 'hentry' => array(
+ 'entry-title' => 'p-name',
+ 'entry-summary' => 'p-summary',
+ 'entry-content' => 'e-content',
+ 'published' => 'dt-published',
+ 'updated' => 'dt-updated',
+ 'author' => 'p-author h-card',
+ 'category' => 'p-category',
+ 'geo' => 'p-geo h-geo',
+ 'latitude' => 'p-latitude',
+ 'longitude' => 'p-longitude',
+ ),
+ 'hrecipe' => array(
+ 'fn' => 'p-name',
+ 'ingredient' => 'p-ingredient',
+ 'yield' => 'p-yield',
+ 'instructions' => 'e-instructions',
+ 'duration' => 'dt-duration',
+ 'nutrition' => 'p-nutrition',
+ 'photo' => 'u-photo',
+ 'summary' => 'p-summary',
+ 'author' => 'p-author h-card'
+ ),
+ 'hresume' => array(
+ 'summary' => 'p-summary',
+ 'contact' => 'h-card p-contact',
+ 'education' => 'h-event p-education',
+ 'experience' => 'h-event p-experience',
+ 'skill' => 'p-skill',
+ 'affiliation' => 'p-affiliation h-card',
+ ),
+ 'vevent' => array(
+ 'dtstart' => 'dt-start',
+ 'dtend' => 'dt-end',
+ 'duration' => 'dt-duration',
+ 'description' => 'p-description',
+ 'summary' => 'p-summary',
+ 'description' => 'p-description',
+ 'url' => 'u-url',
+ 'category' => 'p-category',
+ 'location' => 'h-card',
+ 'geo' => 'p-location h-geo'
+ ),
+ 'hreview' => array(
+ 'summary' => 'p-name',
+ 'fn' => 'p-item h-item p-name', // doesn’t work properly, see spec
+ 'photo' => 'u-photo', // of the item being reviewed (p-item h-item u-photo)
+ 'url' => 'u-url', // of the item being reviewed (p-item h-item u-url)
+ 'reviewer' => 'p-reviewer p-author h-card',
+ 'dtreviewed' => 'dt-reviewed',
+ 'rating' => 'p-rating',
+ 'best' => 'p-best',
+ 'worst' => 'p-worst',
+ 'description' => 'p-description'
+ ),
+ 'hproduct' => array(
+ 'fn' => 'p-name',
+ 'photo' => 'u-photo',
+ 'brand' => 'p-brand',
+ 'category' => 'p-category',
+ 'description' => 'p-description',
+ 'identifier' => 'u-identifier',
+ 'url' => 'u-url',
+ 'review' => 'p-review h-review',
+ 'price' => 'p-price'
+ )
+ );
+}
+
+function parseUriToComponents($uri) {
+ $result = array(
+ 'scheme' => null,
+ 'authority' => null,
+ 'path' => null,
+ 'query' => null,
+ 'fragment' => null
+ );
+
+ $u = @parse_url($uri);
+
+ if(array_key_exists('scheme', $u))
+ $result['scheme'] = $u['scheme'];
+
+ if(array_key_exists('host', $u)) {
+ if(array_key_exists('user', $u))
+ $result['authority'] = $u['user'];
+ if(array_key_exists('pass', $u))
+ $result['authority'] .= ':' . $u['pass'];
+ if(array_key_exists('user', $u) || array_key_exists('pass', $u))
+ $result['authority'] .= '@';
+ $result['authority'] .= $u['host'];
+ if(array_key_exists('port', $u))
+ $result['authority'] .= ':' . $u['port'];
+ }
+
+ if(array_key_exists('path', $u))
+ $result['path'] = $u['path'];
+
+ if(array_key_exists('query', $u))
+ $result['query'] = $u['query'];
+
+ if(array_key_exists('fragment', $u))
+ $result['fragment'] = $u['fragment'];
+
+ return $result;
+}
+
+function resolveUrl($baseURI, $referenceURI) {
+ $target = array(
+ 'scheme' => null,
+ 'authority' => null,
+ 'path' => null,
+ 'query' => null,
+ 'fragment' => null
+ );
+
+ # 5.2.1 Pre-parse the Base URI
+ # The base URI (Base) is established according to the procedure of
+ # Section 5.1 and parsed into the five main components described in
+ # Section 3
+ $base = parseUriToComponents($baseURI);
+
+ # If base path is blank (http://example.com) then set it to /
+ # (I can't tell if this is actually in the RFC or not, but seems like it makes sense)
+ if($base['path'] == null)
+ $base['path'] = '/';
+
+ # 5.2.2. Transform References
+
+ # The URI reference is parsed into the five URI components
+ # (R.scheme, R.authority, R.path, R.query, R.fragment) = parse(R);
+ $reference = parseUriToComponents($referenceURI);
+
+ # A non-strict parser may ignore a scheme in the reference
+ # if it is identical to the base URI's scheme.
+ # TODO
+
+ if($reference['scheme']) {
+ $target['scheme'] = $reference['scheme'];
+ $target['authority'] = $reference['authority'];
+ $target['path'] = removeDotSegments($reference['path']);
+ $target['query'] = $reference['query'];
+ } else {
+ if($reference['authority']) {
+ $target['authority'] = $reference['authority'];
+ $target['path'] = removeDotSegments($reference['path']);
+ $target['query'] = $reference['query'];
+ } else {
+ if($reference['path'] == '') {
+ $target['path'] = $base['path'];
+ if($reference['query']) {
+ $target['query'] = $reference['query'];
+ } else {
+ $target['query'] = $base['query'];
+ }
+ } else {
+ if(substr($reference['path'], 0, 1) == '/') {
+ $target['path'] = removeDotSegments($reference['path']);
+ } else {
+ $target['path'] = mergePaths($base, $reference);
+ $target['path'] = removeDotSegments($target['path']);
+ }
+ $target['query'] = $reference['query'];
+ }
+ $target['authority'] = $base['authority'];
+ }
+ $target['scheme'] = $base['scheme'];
+ }
+ $target['fragment'] = $reference['fragment'];
+
+ # 5.3 Component Recomposition
+ $result = '';
+ if($target['scheme']) {
+ $result .= $target['scheme'] . ':';
+ }
+ if($target['authority']) {
+ $result .= '//' . $target['authority'];
+ }
+ $result .= $target['path'];
+ if($target['query']) {
+ $result .= '?' . $target['query'];
+ }
+ if($target['fragment']) {
+ $result .= '#' . $target['fragment'];
+ } elseif($referenceURI == '#') {
+ $result .= '#';
+ }
+ return $result;
+}
+
+# 5.2.3 Merge Paths
+function mergePaths($base, $reference) {
+ # If the base URI has a defined authority component and an empty
+ # path,
+ if($base['authority'] && $base['path'] == null) {
+ # then return a string consisting of "/" concatenated with the
+ # reference's path; otherwise,
+ $merged = '/' . $reference['path'];
+ } else {
+ if(($pos=strrpos($base['path'], '/')) !== false) {
+ # return a string consisting of the reference's path component
+ # appended to all but the last segment of the base URI's path (i.e.,
+ # excluding any characters after the right-most "/" in the base URI
+ # path,
+ $merged = substr($base['path'], 0, $pos + 1) . $reference['path'];
+ } else {
+ # or excluding the entire base URI path if it does not contain
+ # any "/" characters).
+ $merged = $base['path'];
+ }
+ }
+ return $merged;
+}
+
+# 5.2.4.A Remove leading ../ or ./
+function removeLeadingDotSlash(&$input) {
+ if(substr($input, 0, 3) == '../') {
+ $input = substr($input, 3);
+ } elseif(substr($input, 0, 2) == './') {
+ $input = substr($input, 2);
+ }
+}
+
+# 5.2.4.B Replace leading /. with /
+function removeLeadingSlashDot(&$input) {
+ if(substr($input, 0, 3) == '/./') {
+ $input = '/' . substr($input, 3);
+ } else {
+ $input = '/' . substr($input, 2);
+ }
+}
+
+# 5.2.4.C Given leading /../ remove component from output buffer
+function removeOneDirLevel(&$input, &$output) {
+ if(substr($input, 0, 4) == '/../') {
+ $input = '/' . substr($input, 4);
+ } else {
+ $input = '/' . substr($input, 3);
+ }
+ $output = substr($output, 0, strrpos($output, '/'));
+}
+
+# 5.2.4.D Remove . and .. if it's the only thing in the input
+function removeLoneDotDot(&$input) {
+ if($input == '.') {
+ $input = substr($input, 1);
+ } else {
+ $input = substr($input, 2);
+ }
+}
+
+# 5.2.4.E Move one segment from input to output
+function moveOneSegmentFromInput(&$input, &$output) {
+ if(substr($input, 0, 1) != '/') {
+ $pos = strpos($input, '/');
+ } else {
+ $pos = strpos($input, '/', 1);
+ }
+
+ if($pos === false) {
+ $output .= $input;
+ $input = '';
+ } else {
+ $output .= substr($input, 0, $pos);
+ $input = substr($input, $pos);
+ }
+}
+
+# 5.2.4 Remove Dot Segments
+function removeDotSegments($path) {
+ # 1. The input buffer is initialized with the now-appended path
+ # components and the output buffer is initialized to the empty
+ # string.
+ $input = $path;
+ $output = '';
+
+ $step = 0;
+
+ # 2. While the input buffer is not empty, loop as follows:
+ while($input) {
+ $step++;
+
+ if(substr($input, 0, 3) == '../' || substr($input, 0, 2) == './') {
+ # A. If the input buffer begins with a prefix of "../" or "./",
+ # then remove that prefix from the input buffer; otherwise,
+ removeLeadingDotSlash($input);
+ } elseif(substr($input, 0, 3) == '/./' || $input == '/.') {
+ # B. if the input buffer begins with a prefix of "/./" or "/.",
+ # where "." is a complete path segment, then replace that
+ # prefix with "/" in the input buffer; otherwise,
+ removeLeadingSlashDot($input);
+ } elseif(substr($input, 0, 4) == '/../' || $input == '/..') {
+ # C. if the input buffer begins with a prefix of "/../" or "/..",
+ # where ".." is a complete path segment, then replace that
+ # prefix with "/" in the input buffer and remove the last
+ # segment and its preceding "/" (if any) from the output
+ # buffer; otherwise,
+ removeOneDirLevel($input, $output);
+ } elseif($input == '.' || $input == '..') {
+ # D. if the input buffer consists only of "." or "..", then remove
+ # that from the input buffer; otherwise,
+ removeLoneDotDot($input);
+ } else {
+ # E. move the first path segment in the input buffer to the end of
+ # the output buffer and any subsequent characters up to, but not including,
+ # the next "/" character or the end of the input buffer
+ moveOneSegmentFromInput($input, $output);
+ }
+ }
+
+ return $output;
+}
diff --git a/vendor/mf2/mf2/README.md b/vendor/mf2/mf2/README.md
new file mode 100644
index 0000000..b604296
--- /dev/null
+++ b/vendor/mf2/mf2/README.md
@@ -0,0 +1,401 @@
+php-mf2
+=======
+
+php-mf2 is a pure, generic [microformats-2](http://microformats.org/wiki/microformats-2) parser. It makes HTML as easy to consume as JSON.
+
+Instead of having a hard-coded list of all the different microformats, it follows a set of procedures to handle different property types (e.g. `p-` for plaintext, `u-` for URL, etc). This allows for a very small and maintainable parser.
+
+## Installation
+
+There are two ways of installing php-mf2. I **highly recommend** installing php-mf2 using [Composer](http://getcomposer.org). The rest of the documentation assumes that you have done so.
+
+To install using Composer, run `./composer.phar require mf2/mf2:~0.2`
+
+If you can’t or don’t want to use Composer, then php-mf2 can be installed the old way by downloading [`/Mf2/Parser.php`](https://raw.githubusercontent.com/indieweb/php-mf2/master/Mf2/Parser.php), adding it to your project and requiring it from files you want to call its functions from, like this:
+
+```php
+"
+gpg: aka "[jpeg image of size 12805]"
+```
+
+Possible issues:
+
+* **Git complains that there’s no such tag**: check for a .git file in the source folder; odds are you have the prefer-dist setting enabled and composer is just extracting a zip rather than checking out from git.
+* **Git complains the gpg command doesn’t exist**: If you successfully imported my key then you obviously do have gpg installed, but you might have gpg2, whereas git looks for gpg. Solution: tell git which binary to use: `git config --global gpg.program 'gpg2'`
+
+## Usage
+
+php-mf2 is PSR-0 autoloadable, so simply include Composer’s auto-generated autoload file (`/vendor/autoload.php`) and you can start using it. These two functions cover most situations:
+
+* To fetch microformats from a URL, call `Mf2\fetch($url)`
+* To parse microformats from HTML, call `Mf2\parse($html, $url)`, where `$url` is the URL from which `$html` was loaded, if any. This parameter is required for correct relative URL parsing and must not be left out unless parsing HTML which is not loaded from the web.
+
+## Examples
+
+### Fetching microformats from a page
+
+```php
+Barnaby Walters');
+```
+
+`$output` is a canonical microformats2 array structure like:
+
+```json
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Barnaby Walters"],
+ "url": ["https://waterpigs.co.uk/"]
+ }
+ }],
+ "rels": {}
+}
+```
+
+If no microformats are found, `items` will be an empty array.
+
+Note that, whilst the property prefixes are stripped, the prefix of the `h-*` classname(s) in the "type" array are retained.
+
+### Parsing a document with relative URLs
+
+Most of the time you’ll be getting your input HTML from a URL. You should pass that URL as the second parameter to `Mf2\parse()` so that any relative URLs in the document can be resolved. For example, say you got the following HTML from `http://example.org`:
+
+```html
+
+
Mr. Example
+
+
+```
+
+Parsing like this:
+
+```php
+$output = Mf2\parse($html, 'http://example.org');
+```
+
+will result in the following output, with relative URLs made absolute:
+
+```json
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "photo": ["http://example.org/photo.png"]
+ }
+ }],
+ "rels": {}
+}
+```
+
+php-mf2 correctly handles relative URL resolution according to the URI and HTML specs, including correct use of the `` element.
+
+### Parsing `rel` and `rel=alternate` values
+
+php-mf2 also parses any link relations in the document, placing them into two top-level arrays — one for `rel=alternate` and another for all other rel values, e.g. when parsing:
+
+```html
+Me on twitter
+
+```
+
+parsing will result in the following keys:
+
+```json
+{
+ "items": [],
+ "rels": {
+ "me": ["https://twitter.com/barnabywalters"]
+ },
+ "alternates": [{
+ "url": "http://example.com/notes.atom",
+ "rel": "etc"
+ }]
+}
+```
+
+Protip: if you’re not bothered about the microformats2 data and just want rels and alternates, you can improve performance by creating a `Mf2\Parser` object (see below) and calling `->parseRelsAndAlternates()` instead of `->parse()`, e.g.
+
+```php
+parseRelsAndAlternates();
+```
+
+### Debugging Mf2\fetch
+
+`Mf2\fetch()` will attempt to parse any response served with “HTML” in the content-type, regardless of what the status code is. If it receives a non-HTML response it will return null.
+
+To learn what the HTTP status code for any request was, or learn more about the request, pass a variable name as the third parameter to `Mf2\fetch()` — this will be filled with the contents of `curl_getinfo()`, e.g:
+
+```php
+
+This shows up yet more ignored content';
+$parser = new Mf2\Parser($doc);
+
+$parser->parseFromId('parse-from-here'); // returns a document with only the h-card descended from div#parse-from-here
+
+$elementIWant = $parser->query('an xpath query')[0];
+
+$parser->parse(true, $elementIWant); // returns a document with only mfs under the selected element
+
+```
+
+### Generating output for JSON serialization with JSON-mode
+
+Due to a quirk with the way PHP arrays work, there is an edge case ([reported](https://github.com/indieweb/php-mf2/issues/29) by Tom Morris) in which a document with no rel values, when serialised as JSON, results in an empty object as the rels value rather than an empty array. Replacing this in code with a stdClass breaks PHP iteration over the values.
+
+As of version 0.2.6, the default behaviour is back to being PHP-friendly, so if you want to produce results specifically for serialisation as JSON (for example if you run a HTML -> JSON service, or want to run tests against JSON fixtures), enable JSON mode:
+
+```php
+// …by passing true as the third constructor:
+$jsonParser = new Mf2\Parser($html, $url, true);
+```
+
+### Classic Microformats Markup
+
+php-mf2 has some support for parsing classic microformats markup. It’s enabled by default, but can be turned off by calling `Mf2\parse($html, $url, false);` or `$parser->parse(false);` if you’re instanciating a parser yourself.
+
+In previous versions of php-mf2 you could also add your own class mappings — officially this is no longer supported.
+
+* If the built in mappings don’t successfully parse some classic microformats markup then raise an issue and we’ll fix it.
+* If you want to screen-scrape websites which don’t use mf2 into mf2 data structures, consider contributing to [php-mf2-shim](https://github.com/indieweb/php-mf2-shim)
+* If you *really* need to make one-off changes to the default mappings… It is possible. But you have to figure it out for yourself ;)
+
+## Security
+
+**No filtering of content takes place in mf2\Parser, so treat its output as you would any untrusted data from the source of the parsed document.**
+
+Some tips:
+
+* All content apart from the 'html' key in dictionaries produced by parsing an `e-*` property is not HTML-escaped. For example, `<code>` will result in `"name": [""]`. At the very least, HTML-escape all properties before echoing them out in HTML
+* If you’re using the raw HTML content under the 'html' key of dictionaries produced by parsing `e-*` properties, you SHOULD purify the HTML before displaying it to prevent injection of arbitrary code. For PHP I recommend using [HTML Purifier](http://htmlpurifier.org)
+
+TODO: move this section to a security/consumption best practises page on the wiki
+
+## Contributing
+
+Issues and bug reports are very welcome. If you know how to write tests then please do so as code always expresses problems and intent much better than English, and gives me a way of measuring whether or not fixes have actually solved your problem. If you don’t know how to write tests, don’t worry :) Just include as much useful information in the issue as you can.
+
+Pull requests very welcome, please try to maintain stylistic, structural and naming consistency with the existing codebase, and don’t be too upset if I make naming changes :)
+
+### How to make a Pull Request
+
+1. Fork the repo to your github account
+2. Clone a copy to your computer (simply installing php-mf2 using composer only works for using it, not developing it)
+3. Install the dev dependencies with `./composer.phar install`
+4. Run PHPUnit with `./vendor/bin/phpunit`
+5. Make your changes
+6. Add PHPUnit tests for your changes, either in an existing test file if suitable, or a new one
+7. Make sure your tests pass (`./vendor/bin/phpunit`), preferably using both PHP 5.3 and 5.4
+8. Go to your fork of the repo on github.com and make a pull request, preferably with a short summary, detailed description and references to issues/parsing specs as appropriate
+9. Bask in the warm feeling of having contributed to a piece of free software
+
+### Testing
+
+There are currently two separate test suites: one, in `tests/Mf2`, is written in phpunit, containing many microformats parsing examples as well as internal parser tests and regression tests for specific issues over php-mf2’s history. Run it with `./vendor/bin/phpunit`.
+
+The other, in `tests/test-suite`, is a custom test harness which hooks up php-mf2 to the cross-platform microformats test suite. Each test consists of a HTML file and a corresponding JSON file, and the suite can be run with `php ./tests/test-suite/test-suite.php`.
+
+Currently php-mf2 passes the majority of it’s own test case, and a good percentage of the cross-platform tests. Contributors should ALWAYS test against the PHPUnit suite to ensure any changes don’t negatively impact php-mf2, and SHOULD run the cross-platform suite, especially if you’re changing parsing behaviour.
+
+### Changelog
+
+#### v0.2.10
+
+2015-04-29
+
+* Merged #58, fixing some parsing bugs and adding support for area element parsing. Thanks so much for your hard work and patience, Ben!
+
+#### v0.2.9
+
+2014-08-06
+
+* Added backcompat classmap for hProduct, associated tests
+* Started GPG signing version tags as barnaby@waterpigs.co.uk, fingerprint CBC7 7876 BF7C 9637 B6AE 77BA 7D49 834B 0416 CFA3
+
+#### v0.2.8
+
+2014-07-17
+
+* Fixed issue #51 causing php-mf2 to not work with PHP 5.3
+* Fixed issue #52 correctly handling the `` element by ignoring it
+* Fixed issue #53 improving the plaintext parsing of `` elements
+
+#### v0.2.7
+
+2014-06-18
+
+* Added `Mf2\fetch()` which fetches content from a URL and returns parsed microformats
+* Added implied `dt-end` discovery (thanks for all your hard work, @gRegorLove!)
+* Fixed issue causing classnames like `blah e- blah` to produce properties with numeric keys (thanks @aaronpk and @gRegorLove)
+* Fixed issue causing resolved URLs to not include port numbers (thanks @aaronpk)
+
+#### v0.2.6
+
+* Added JSON mode as long-term fix for #29
+* Fixed bug causing microformats nested under multiple property names to be parsed only once
+
+#### v0.2.5
+
+* Removed conditional replacing empty rel list with stdclass. Original purpose was to make JSON-encoding the output from the parser correct but it also caused Fatal Errors due to trying to treat stdclass as array.
+
+#### v0.2.4
+
+#### v0.2.3
+
+* Made p-* parsing consistent with implied name parsing
+* Stopped collapsing whitespace in p-* properties
+* Implemented unicodeTrim which removes characters as well as regex \s
+* Added support for implied name via abbr[title]
+* Prevented excessively nested value-class elements from being parsed incorrectly, removed incorrect separator which was getting added in some cases
+* Updated u-* parsing to be spec-compliant, matching [href] before value-class and only attempting URL resolution for URL attributes
+* Added support for input[value] parsing
+* Tests for all the above
+
+#### v0.2.2
+
+* Made resolveUrl method public, allowing advanced parsers and subclasses to make use of it
+* Fixed bug causing multiple duplicate property values to appear
+
+#### v0.2.1
+
+* Fixed bug causing classic microformats property classnames to not be parsed correctly
+
+#### v0.2.0 (BREAKING CHANGES)
+
+* Namespace change from mf2 to Mf2, for PSR-0 compatibility
+* `Mf2\parse()` function added to simplify the most common case of just parsing some HTML
+* Updated e-* property parsing rules to match mf2 parsing spec — instead of producing inconsistent HTML content, it now produces dictionaries like
+{
+ "html": "The Content",
+ "value: "The Content"
+}
+
';
+ $parser = new Parser($input);
+ $output = $parser->parse();
+
+ $this->assertArrayHasKey('start', $output['items'][0]['properties']);
+ $this->assertEquals('2012-10-07T21:00:00', $output['items'][0]['properties']['start'][0]);
+ }
+
+ /**
+ * This test name refers to the value-class used within the dt-end.
+ * @group parseDT
+ * @group valueClass
+ */
+ public function testImpliedDTEndWithValueClass() {
+ $input = '
2014-06-04 at 18:3019:30
';
+ $parser = new Parser($input);
+ $output = $parser->parse();
+
+ $this->assertArrayHasKey('start', $output['items'][0]['properties']);
+ $this->assertArrayHasKey('end', $output['items'][0]['properties']);
+ $this->assertEquals('2014-06-04T18:30', $output['items'][0]['properties']['start'][0]);
+ $this->assertEquals('2014-06-04T19:30', $output['items'][0]['properties']['end'][0]);
+ }
+
+ /**
+ * This test name refers to the lack of value-class within the dt-end.
+ * @group parseDT
+ * @group valueClass
+ */
+ public function testImpliedDTEndWithoutValueClass() {
+ $input = '
';
+ //$parser = new Parser($input);
+ $output = Mf2\parse($input);
+
+ $this->assertArrayHasKey('content', $output['items'][0]['properties']);
+ $this->assertEquals('Here is a load of embedded markup', $output['items'][0]['properties']['content'][0]['html']);
+ $this->assertEquals('Here is a load of embedded markup', $output['items'][0]['properties']['content'][0]['value']);
+ }
+
+ public function testParseEResolvesRelativeLinks() {
+ $input = '
Austin! One of my favourite cities (mostly because I love tacos). Was very pleased to be asked to return to this conference after I spoke there last year. The day was remarkable, if only because it’s one of the first conferences in a very long time where I actually watched all of the talks (although Rebecca, being on before me, may have only had half of my attention). Really a very well curated day, and I felt very lucky to be in the line-up.
+
Alex was not overly prescriptive in what I should talk about, but suggested he liked the content of last year and would like a little more on that. So, I decided to pick an aspect about that that I felt was important to us at GDS and fundamental to the success of our Design Principles.
+
For me, it’s been our honesty and simple language. The words that we’ve used to talk about user needs, technical aspects of the site and the ethos have been plain and no-nonsense. I think this is hugely down to the strength of a team that has the confidence to cut through bullshit and say what it really means – Russell and Sarah are particularly brilliant at this, and have had huge parts to play in getting this cult of simple down in writing.
+
The tech scene is sort of rife with nonsense words. Buzzwords and clichés and the new name for the next big thing, which is actually the new name for the same old sensible thing – but with better marketing and a twitter hashtag. Ugh. I want a lot less of that in our world.
+
So, I picked on a few of these and showed a few examples from how we’re dealing with them at GDS. I believe the video for that talk is out now, but the slides are here.
I attended this conference last year – definitely a favourite for its surprisingly sunny weather and for being one of the most friendly events I had been to in 2012. So, I was really glad to get to come back and share our Design Principles with the crowd.
+
It was very similar to the talk I gave at TXJS last year, except we’ve done a whole lot more at GDS since June of last year – we released v1.0 of gov.uk, and a bunch of other stuff like the performance platform, Inside Government (and the 24 departments) and foreign travel advice, to name a few. I showcased some of these things, and then went through the design principles with the lovely, receptive, Polish audience and it seemed to go over rather well. The slides for this version of the talk are here.
+
Three days are a lot for a conference, but it was really high quality through-out and the breadth of subjects was really great. I wouldn’t recommend putting the party on the second night again, however – that last morning was something of a challenge. :)
I’ve had a fair few people ask about the Jawbone Up I’ve been wearing since November (the second version, not the recalled first one – although, as you’ll read, perhaps this one should have been too). Here’s how I’ve found it.
+
The good
+
The reason I waited on the Up, over say the Nike Fuelband, was because I wanted a wrist-wearable tracker plus sleep data. The FitBit One has a wearable night-time band, but it looks rather large and cumbersome and I didn’t want a clothes-clip tracker in the day time (where do dress wearers clip them?).
+
+
The Up band’s size is really good and it’s comfy and it doesn’t look ridiculous.
+
I like the sleep tracking, although I feel like it’s not terribly accurate – if I wake and don’t move around much, it doesn’t record it as a waking period – but it’s accurate enough to collect the information I’m interested in.
+
I have been a bad sleeper for a long time, but having actual data about the length of time I’ve been asleep and awake has helped reduce my anxiety about a bad night’s sleep (it always feels like a lifetime when you’re awake in the middle of the night and don’t want to be – but turns out it isn’t), which in turn has helped improve how well I go to sleep generally, I think.
+
I also like the smart-alarm – before I’d put off looking at the clock to see the time, but the gentle nudge that, yes, it is about time I got up is really useful, and again, anxiety reducing.
+
The steps tracking seems fine. I’ve never bothered to calibrate it, since I don’t do much exercise except walking – but it seems to match the distances I do regularly around the city. It’s fun – I’m not competing, so it’s mostly just interesting. I hear from others that it basically can’t cope with running or cycling, though.
+
The bad
+
It broke. Twice. The first time, it broke after about 6 weeks – the vibration feature (needed for the smart-alarm and idle alert) just stopped working for no apparent reason. At the time, the Up band wasn’t out in the UK, so Jawbone were not willing to replace it (ugh) but when I said I’d be in New York for a week, they agreed to courier me a replacement to the Google office there while I was in town – which I think was really just a nice act on the part of one very good customer service rep I’d met on the support forums. Had I not been on the forum or nagged on twitter, I suspect I’d have been left out of pocket.
+
Unfortunately, the second band stopped working a couple of months later. The smart-alarm feature became temperamental and often wouldn’t go off at all, and the button on the end of the band had become dislodged and no longer clicked. This time, the band was out in the UK, and they sent me another one immediately.
+
I’ve been wearing the third one for about a week and I honestly expect it’ll break soon, too, sadly. Edd, who originally picked up my first band for me while he was in New York, had his first and second bands break too (the second after only 2 weeks) – so the statistical data I have available to me is not very favourable and a quick look through the forums will find most people in similar situations.
+
The other stuff
+
They just released third-party app integration, but sadly on iOS devices only (I use a Nexus 4 day to day, so syncing with an iOS device is an extra annoyance if I want to use those features). I expect that’ll help make the data the band is recording more interesting.
+
Otherwise, these are things I wish it had:
+
+
A visible metre or something on the band. I have to sync it with my phone to find out how I’m doing. It doesn’t even tell me the time. I feel like it’s not providing me with much in return for the space it’s taking up on my wrist.
+
There’s no web view – the only way to share the data is through facebook (meh) or if your friend is also an Up user (which is basically no one). I’d like to be able to let my husband see my sleep data – then he’ll know that I’m just grumpy because I’m tired. He can sneak a look at it on my phone, I guess, but it would just be nice to have a public view somewhere on the web.
+
The food and mood logging is boring and pointless. It may be that the new app integration gives this value, but it was onerous and I gave up after a week. The insights offered to you only ever related to steps and sleep, so no matter how much food and mood you logged, it was for your own entertainment only. These features appear to be rather tacked-on.
+
Some people complain about the lack of wireless sync as a deal-breaker (you sync it via the mic jack). This personally doesn’t greatly bother me (longer battery life is a reasonable trade), but given that I have to take it off my arm to find out anything about it, as mentioned above, then I think it would have been preferential in this case to sync wirelessly.
+
+
But, these are all minor gripes – I’d recommend but for the fact that they clearly have not managed to make a band that doesn’t expire every 2 months.
+
I’m mostly just hoping this band will hold out long enough for the delivery of the Fitbit Flex I just pre-ordered.
+
Update: My 3rd band has the same smart alarm fault. Sigh.
As I mentioned, I wrote for the Pastry Box Project for all of 2012.
+
Now, it’s hopefully going to be printed in dead tree form with the royalties going to the Red Cross. That’s kind of nice, as are many of the fancier offerings at the higher tiers (hand press? illustrations? all sorts!).
Need to use an OAuth-protected API in a Python webapp?
+oauth-dropins is for you! It’s a
+collection of drop-in OAuth client flows for many popular sites. It supports
+Facebook, Twitter, Google+, Instagram, Dropbox, Blogger, Tumblr, and
+WordPress.com, with more on the way. It also currently requires
+Google App Engine, but should support other
+platforms in the future.
You can use oauth-dropins in your project with just a bit of code. For example,
+to use it for Facebook, just add these two lines to your WSGI application:
Then map those URLs in your
+app.yaml
+and put your Facebook app‘s key and
+secret in facebook_app_id and facebook_app_secret files in your app’s root
+directory, and you’re good to go!
+
+
See the GitHub repo for more
+details. Happy hacking!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/input.html
new file mode 100644
index 0000000..2f8bdf4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/input.html
@@ -0,0 +1 @@
+
665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/output.json
new file mode 100644
index 0000000..b6e96ad
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/test.json
new file mode 100644
index 0000000..c97fd02
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/input.html
new file mode 100644
index 0000000..3b056af
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/input.html
@@ -0,0 +1,8 @@
+
+ 665 3rd St.
+ Suite 207
+ San Francisco,
+ CA
+ 94107
+ U.S.A.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/output.json
new file mode 100644
index 0000000..5e6fa40
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/output.json
@@ -0,0 +1,14 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["665 3rd St."],
+ "extended-address": ["Suite 207"],
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "postal-code": ["94107"],
+ "country-name": ["U.S.A."],
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/test.json
new file mode 100644
index 0000000..f0f4211
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/suite.json
new file mode 100644
index 0000000..191819a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/adr/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "adr parsing tests",
+ "description": "This page was design to test the parsing of adr and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/input.html
new file mode 100644
index 0000000..06b4dff
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/input.html
@@ -0,0 +1,4 @@
+
+ N 37° 24.491,
+ W 122° 08.313
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/output.json
new file mode 100644
index 0000000..fbf1669
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["37.408183"],
+ "longitude": ["-122.13855"],
+ "name": ["N 37° 24.491, W 122° 08.313"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/test.json
new file mode 100644
index 0000000..f757bef
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/abbrpattern/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "The tag pattern",
+ "description": "geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/input.html
new file mode 100644
index 0000000..a4ff5d2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/input.html
@@ -0,0 +1,10 @@
+
+ The Bricklayer's Arms
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/output.json
new file mode 100644
index 0000000..397f280
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"],
+ "name": ["The Bricklayer's Arms"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/test.json
new file mode 100644
index 0000000..32634f6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/hidden/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Hidden value-title pattern",
+ "description": "geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/input.html
new file mode 100644
index 0000000..05c64be
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/input.html
@@ -0,0 +1,3 @@
+
On my way to The Bricklayer's Arms
+ (Geo: 51.513458;-0.14812)
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/output.json
new file mode 100644
index 0000000..8fe397b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["51.513458;-0.14812"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/test.json
new file mode 100644
index 0000000..3311f8e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/input.html
new file mode 100644
index 0000000..3f39cf3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/input.html
@@ -0,0 +1,6 @@
+We are meeting at
+
+ The Bricklayer's Arms
+ (Geo: 51.513458:
+ -0.14812)
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/output.json
new file mode 100644
index 0000000..68af892
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"],
+ "name": ["The Bricklayer's Arms (Geo: 51.513458: -0.14812)"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/test.json
new file mode 100644
index 0000000..c99a5c5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/suite.json
new file mode 100644
index 0000000..a24e71a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "geo parsing tests",
+ "description": "This page was design to test the parsing of geo and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html
new file mode 100644
index 0000000..4115e2f
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/input.html
@@ -0,0 +1,10 @@
+
+
+
+ N 51° 51.345,
+
+
+ W -0° 14.812
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json
new file mode 100644
index 0000000..1aa2631
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"],
+ "name": ["N 51° 51.345, W -0° 14.812"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json
new file mode 100644
index 0000000..52a09ba
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/geo/valuetitleclass/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Value-title class pattern",
+ "description": "geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/input.html
new file mode 100644
index 0000000..f337957
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/input.html
@@ -0,0 +1,10 @@
+
+ Bricklayer's Arms
+
+ 3 Charlotte Road,
+ City of London,
+ EC2A 3PE,
+ UK
+ –
+ Geo:(51.526421;-0.081067)
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/output.json
new file mode 100644
index 0000000..5a3f6a5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/output.json
@@ -0,0 +1,14 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "name": ["Bricklayer's Arms"],
+ "label": ["3 Charlotte Road, City of London, EC2A 3PE, UK"],
+ "street-address": ["3 Charlotte Road"],
+ "locality": ["City of London"],
+ "postal-code": ["EC2A 3PE"],
+ "country-name": ["UK"],
+ "geo": ["51.526421;-0.081067"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/test.json
new file mode 100644
index 0000000..6d61fea
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geo/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With geo data",
+ "description": "h-adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/input.html
new file mode 100644
index 0000000..91edf33
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/input.html
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/output.json
new file mode 100644
index 0000000..17b75ec
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "name": ["Bricklayer's Arms"],
+ "geo": ["geo:51.526421;-0.081067;crs=wgs84;u=40"],
+ "locality": ["London"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/test.json
new file mode 100644
index 0000000..580c199
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/geourl/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With geo url",
+ "description": "h-adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/input.html
new file mode 100644
index 0000000..5a02259
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/input.html
@@ -0,0 +1 @@
+
665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/output.json
new file mode 100644
index 0000000..b6e96ad
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/test.json
new file mode 100644
index 0000000..bad55a2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html
new file mode 100644
index 0000000..02e8805
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/input.html
@@ -0,0 +1,8 @@
+
+ 665 3rd St.
+ Suite 207
+ San Francisco,
+ CA
+ 94107
+ U.S.A.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json
new file mode 100644
index 0000000..5e6fa40
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/output.json
@@ -0,0 +1,14 @@
+{
+ "items": [{
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["665 3rd St."],
+ "extended-address": ["Suite 207"],
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "postal-code": ["94107"],
+ "country-name": ["U.S.A."],
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json
new file mode 100644
index 0000000..f0f4211
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-adr",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/suite.json
new file mode 100644
index 0000000..7620b31
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-adr/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-adr parsing tests",
+ "description": "This page was design to test the parsing of h-adr. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/childimplied/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/childimplied/input.html
new file mode 100644
index 0000000..0811fbd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/childimplied/input.html
@@ -0,0 +1,6 @@
+
+
+
Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities.
+
Strategy and Leadership
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json
new file mode 100644
index 0000000..5233ce3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/output.json
@@ -0,0 +1,13 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "photo": ["http://blog.mozilla.org/press/files/2012/04/mitchell-baker.jpg"],
+ "url": ["http://blog.lizardwrangler.com/", "https://twitter.com/MitchellBaker"],
+ "name": ["Mitchell Baker"],
+ "org": ["Mozilla Foundation"],
+ "note": ["Mitchell is responsible for setting the direction and scope of the Mozilla Foundation and its activities."],
+ "category": ["Strategy", "Leadership"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json
new file mode 100644
index 0000000..bf6f11b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/extendeddescription/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "An extended description",
+ "description": "h-card",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/hcard/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/hcard/input.html
new file mode 100644
index 0000000..d255904
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/hcard/input.html
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/output.json
new file mode 100644
index 0000000..5a73c60
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/output.json
@@ -0,0 +1,27 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Mitchell Baker"],
+ "url": ["http://blog.lizardwrangler.com/"]
+ },
+ "children": [{
+ "type": ["h-card", "h-org"],
+ "properties": {
+ "name": ["Mozilla Foundation"],
+ "url": ["http://mozilla.org/"]
+ }
+ }]
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Mozilla Foundation"],
+ "url": ["http://mozilla.org/"]
+ }
+ },{
+ "type": ["h-org"],
+ "properties": {
+ "name": ["Mozilla Foundation"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/test.json
new file mode 100644
index 0000000..1684895
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/nested/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Additional nested microformats",
+ "description": "h-card",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/input.html
new file mode 100644
index 0000000..ec50e04
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/input.html
@@ -0,0 +1,21 @@
+
+
+
+ John
+ P
+ Doe
+
+
+
+
+ BSc
+ BA
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/output.json
new file mode 100644
index 0000000..bd04303
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/output.json
@@ -0,0 +1,13 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["John Doe"],
+ "given-name": ["John"],
+ "additional-name": ["Peter"],
+ "family-name": ["Doe"],
+ "honorific-suffix": ["MSc","PHD"],
+ "org": ["Madgex", "Mozilla"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/test.json
new file mode 100644
index 0000000..68f9222
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/p-property/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "p-property",
+ "description": "h-card",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/suite.json
new file mode 100644
index 0000000..84eb683
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-card/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-card parsing tests",
+ "description": "This page was design to test the parsing of h-card. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html
new file mode 100644
index 0000000..9d377b1
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/input.html
@@ -0,0 +1 @@
+microformats.org at 7
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json
new file mode 100644
index 0000000..9ee4ebd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json
new file mode 100644
index 0000000..514df28
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "h-entry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/input.html
new file mode 100644
index 0000000..9c69413
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/input.html
@@ -0,0 +1 @@
+
microformats.org at 7
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/output.json
new file mode 100644
index 0000000..ea8e13b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/test.json
new file mode 100644
index 0000000..1f9562b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-entry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/suite.json
new file mode 100644
index 0000000..86f62ab
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-entry parsing tests",
+ "description": "This page was design to test the parsing of h-entry. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html
new file mode 100644
index 0000000..53ba18c
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/input.html
@@ -0,0 +1,19 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json
new file mode 100644
index 0000000..5a30958
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/output.json
@@ -0,0 +1,28 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
+ "name": ["microformats.org at 7"],
+ "content": [{
+ "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service",
+ "html": "\n
Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.
\n\n
The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service
\n "
+ }],
+ "updated": ["2012-06-25T17:08:26"],
+ "author": [{
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json
new file mode 100644
index 0000000..762ba5a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/summarycontent/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Entry with summary and content",
+ "description": "h-entry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/u-property/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/u-property/input.html
new file mode 100644
index 0000000..344adc2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-entry/u-property/input.html
@@ -0,0 +1,28 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/output.json
new file mode 100644
index 0000000..18acbbd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/output.json
@@ -0,0 +1,33 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["IndieWebCamp 2012"],
+ "url": ["http://indiewebcamp.com/2012"],
+ "start": ["2012-06-30"],
+ "end": ["2012-07-01"],
+ "location": [{
+ "value": "Geoloqi, 920 SW 3rd Ave. Suite 400, Portland, OR",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Geoloqi"],
+ "org": ["Geoloqi"],
+ "url": ["http://geoloqi.com/"],
+ "street-address": ["920 SW 3rd Ave. Suite 400"],
+ "locality": ["Portland"],
+ "region": ["Oregon"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Geoloqi"],
+ "org": ["Geoloqi"],
+ "url": ["http://geoloqi.com/"],
+ "street-address": ["920 SW 3rd Ave. Suite 400"],
+ "locality": ["Portland"],
+ "region": ["Oregon"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/test.json
new file mode 100644
index 0000000..ed8a707
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/combining/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Event with location",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/input.html
new file mode 100644
index 0000000..946e810
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/input.html
@@ -0,0 +1,7 @@
+
+ The 4th Microformat party will be on
+
+ , from
+ to
+ .
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/output.json
new file mode 100644
index 0000000..ccc2df7
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["The 4th Microformat party"],
+ "start": ["2009-06-26T19:00:00"],
+ "end": ["2009-06-26T22:00:00"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/test.json
new file mode 100644
index 0000000..f3870b0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/concatenate/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Concatenate multiple datetime elements",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/input.html
new file mode 100644
index 0000000..66dc530
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/input.html
@@ -0,0 +1,23 @@
+
+ The party will be on
+
+
+
+ March 14th 2013
+
+
+ , from
+ 07:00:00am
+
+
+
+
+
+ Just added,
+ Removed
+
+ June 29
+
+
2013-07-02
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/output.json
new file mode 100644
index 0000000..56e74ee
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/output.json
@@ -0,0 +1,18 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["The party"],
+ "start": [
+ "2013-03-14",
+ "2013-06-25T07:00:00",
+ "2013-06-26",
+ "2013-06-27",
+ "2013-06-28",
+ "2013-06-29",
+ "2013-07-01",
+ "2013-07-02"
+ ]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/test.json
new file mode 100644
index 0000000..a4d5341
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/dt-property/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "dt-property",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html
new file mode 100644
index 0000000..3c814f6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/input.html
@@ -0,0 +1 @@
+IndieWebCamp 2012
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json
new file mode 100644
index 0000000..b858f23
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["IndieWebCamp 2012"],
+ "url": ["http://indiewebcamp.com/2012"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json
new file mode 100644
index 0000000..b20f2a4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/input.html
new file mode 100644
index 0000000..3cc7ff3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/input.html
@@ -0,0 +1 @@
+
IndieWebCamp 2012
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/output.json
new file mode 100644
index 0000000..07bdd81
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["IndieWebCamp 2012"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/test.json
new file mode 100644
index 0000000..8a997d0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/suite.json
new file mode 100644
index 0000000..eb7c800
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-event parsing tests",
+ "description": "This page was design to test the parsing of h-event. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/input.html
new file mode 100644
index 0000000..9d04248
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/input.html
@@ -0,0 +1,47 @@
+
+ The 4th Microformat party will be on
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+ , from
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/output.json
new file mode 100644
index 0000000..b80d3e5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/output.json
@@ -0,0 +1,23 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["The 4th Microformat party"],
+ "start": [
+ "2009-06-26T19:00:00-0800",
+ "2009-06-26T19:00:00-0800",
+ "2009-06-26T19:00:00+0800",
+ "2009-06-26T19:00:00Z",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00-0800",
+ "2009-06-26T19:00:00+0800",
+ "2009-06-26T19:00:00Z",
+ "2009-06-26T19:00:00"
+ ],
+ "end": [
+ "2013-034",
+ "2013-06-27 15:34:00"
+ ]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/test.json
new file mode 100644
index 0000000..def2add
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-event/time/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Time formats",
+ "description": "h-event",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html
new file mode 100644
index 0000000..f1dbd31
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/input.html
@@ -0,0 +1,4 @@
+
+ N 37° 24.491,
+ W 122° 08.313
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json
new file mode 100644
index 0000000..fbf1669
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["37.408183"],
+ "longitude": ["-122.13855"],
+ "name": ["N 37° 24.491, W 122° 08.313"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json
new file mode 100644
index 0000000..2b33256
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/abbrpattern/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "The Tag Pattern",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/input.html
new file mode 100644
index 0000000..4694c88
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/input.html
@@ -0,0 +1,8 @@
+
My favourite hill in the lakes is
+
+ Pen-y-ghent
+ (Geo: 54.155278,
+ -2.249722). It
+ raises to 694m.
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/output.json
new file mode 100644
index 0000000..fdc7b5d
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/output.json
@@ -0,0 +1,11 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["Pen-y-ghent"],
+ "latitude": ["54.155278"],
+ "longitude": ["-2.249722"],
+ "altitude": ["694"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/test.json
new file mode 100644
index 0000000..50c08c9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/altitude/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Geo with a altitude property",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/input.html
new file mode 100644
index 0000000..71bce2b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/input.html
@@ -0,0 +1,10 @@
+
+ The Bricklayer's Arms
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/output.json
new file mode 100644
index 0000000..397f280
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"],
+ "name": ["The Bricklayer's Arms"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/test.json
new file mode 100644
index 0000000..fe15150
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/hidden/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "The tag pattern",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/input.html
new file mode 100644
index 0000000..d465e56
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/input.html
@@ -0,0 +1,3 @@
+
On my way to The Bricklayer's Arms
+ (Geo: 51.513458;-0.14812)
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/output.json
new file mode 100644
index 0000000..a1f5099
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["51.513458;-0.14812"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/test.json
new file mode 100644
index 0000000..d2518a4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html
new file mode 100644
index 0000000..1392cf6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/input.html
@@ -0,0 +1,5 @@
+
We are meeting at
+ The Bricklayer's Arms
+ (Geo: 51.513458:
+ -0.14812)
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json
new file mode 100644
index 0000000..4e75c63
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["The Bricklayer's Arms"],
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json
new file mode 100644
index 0000000..9b3bac4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/suite.json
new file mode 100644
index 0000000..a16682b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-geo parsing tests",
+ "description": "This page was design to test the parsing of h-geo. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html
new file mode 100644
index 0000000..3dda4cc
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/input.html
@@ -0,0 +1,10 @@
+
+
+
+ N 51° 51.345,
+
+
+ W -0° 14.812
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json
new file mode 100644
index 0000000..1aa2631
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-geo"],
+ "properties": {
+ "latitude": ["51.513458"],
+ "longitude": ["-0.14812"],
+ "name": ["N 51° 51.345, W -0° 14.812"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json
new file mode 100644
index 0000000..78d6c9b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-geo/valuetitleclass/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Value-title class pattern",
+ "description": "h-geo",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/input.html
new file mode 100644
index 0000000..ebac654
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/input.html
@@ -0,0 +1,35 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/output.json
new file mode 100644
index 0000000..c1e94a7
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/output.json
@@ -0,0 +1,49 @@
+{
+ "items": [{
+ "type": ["h-news"],
+ "properties": {
+ "entry": [{
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
+ "content": [{
+ "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service",
+ "html": "\n
Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.
\n\n
The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service
\n "
+ }],
+ "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."],
+ "updated": ["2012-06-25T17:08:26"],
+ "author": {
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }
+ }
+ }],
+ "dateline": [{
+ "value": "San Francisco, CA",
+ "type": ["h-adr"],
+ "properties": {
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "name": ["San Francisco, CA"]
+ }
+ }],
+ "geo": ["37.774921;-122.445202"],
+ "source-org": [{
+ "value": "microformats.org",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["microformats.org"],
+ "url": ["http://microformats.org/"]
+ }
+ }],
+ "principles": ["http://microformats.org/wiki/Category:public_domain_license"],
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/test.json
new file mode 100644
index 0000000..76ce46b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/all/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With dateline h-card",
+ "description": "h-news",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/input.html
new file mode 100644
index 0000000..8d0fe48
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/input.html
@@ -0,0 +1,24 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/output.json
new file mode 100644
index 0000000..3bd6c08
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/output.json
@@ -0,0 +1,37 @@
+{
+ "items": [{
+ "type": ["h-news"],
+ "properties": {
+ "entry": [{
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
+ "content": [{
+ "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service",
+ "html": "\n
Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.
\n\n
The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service
\n "
+ }],
+ "updated": ["2012-06-25T17:08:26"],
+ "author": {
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }
+ }
+ }],
+ "source-org": [{
+ "value": "microformats.org",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["microformats.org"],
+ "url": ["http://microformats.org/"]
+ }
+ }],
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/test.json
new file mode 100644
index 0000000..4e9162e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/minimum/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "h-news",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/suite.json
new file mode 100644
index 0000000..7fb5ff9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-news/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-news parsing tests",
+ "description": "This page was design to test the parsing of h-news. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/input.html
new file mode 100644
index 0000000..d51ceda
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/input.html
@@ -0,0 +1 @@
+Mozilla Foundation
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/output.json
new file mode 100644
index 0000000..9acc8fe
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-org"],
+ "properties": {
+ "name": ["Mozilla Foundation"],
+ "url": ["http://mozilla.org/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/test.json
new file mode 100644
index 0000000..01ba3eb
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/hyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "h-org",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/input.html
new file mode 100644
index 0000000..822668d
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/input.html
@@ -0,0 +1 @@
+Mozilla Foundation
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/output.json
new file mode 100644
index 0000000..e7406a9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-org"],
+ "properties": {
+ "name": ["Mozilla Foundation"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/test.json
new file mode 100644
index 0000000..63b8dfd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simple/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Simple org",
+ "description": "h-org",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html
new file mode 100644
index 0000000..e9480e0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/input.html
@@ -0,0 +1,4 @@
+
+ W3C -
+ CSS Working Group
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json
new file mode 100644
index 0000000..e094560
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-org"],
+ "properties": {
+ "organization-name": ["W3C"],
+ "organization-unit": ["CSS Working Group"],
+ "name": ["W3C - CSS Working Group"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json
new file mode 100644
index 0000000..2f1b936
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Simple properties",
+ "description": "h-org",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/suite.json
new file mode 100644
index 0000000..db03f0e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-org/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-org parsing tests",
+ "description": "This page was design to test the parsing of h-org. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/input.html
new file mode 100644
index 0000000..60dfa04
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/input.html
@@ -0,0 +1,20 @@
+
+
Raspberry Pi
+
+
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.
From:
+ The Raspberry Pi Foundation -
+ Cambridge
+ UK
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/output.json
new file mode 100644
index 0000000..a4e56dc
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/output.json
@@ -0,0 +1,43 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
+ "description": [{
+ "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.",
+ "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."
+ }],
+ "url": ["http://www.raspberrypi.org/"],
+ "price": ["£29.95"],
+ "review": [{
+ "value": "9.2 out of 10 based on 178 reviews",
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "rating": [{
+ "value": "9.2 out of 10 based on 178 reviews",
+ "type": ["h-rating"],
+ "properties": {
+ "average": ["9.2"],
+ "best": ["10"],
+ "count": ["178"],
+ "name": ["9.2 out of 10 based on 178 reviews"]
+ }
+ }],
+ "name": ["9.2 out of 10 based on 178 reviews"]
+ }
+ }],
+ "category": ["Computer","Education"],
+ "brand": [{
+ "value": "From: The Raspberry Pi Foundation - Cambridge UK",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["The Raspberry Pi Foundation"],
+ "org": ["The Raspberry Pi Foundation"],
+ "locality": ["Cambridge"],
+ "country-name": ["UK"]
+ }
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/test.json
new file mode 100644
index 0000000..0b56103
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/aggregate/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With h-review-aggregate",
+ "description": "h-product",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html
new file mode 100644
index 0000000..868d980
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/input.html
@@ -0,0 +1 @@
+Raspberry Pi
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json
new file mode 100644
index 0000000..b073a3b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "url": ["http://www.raspberrypi.org/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json
new file mode 100644
index 0000000..bc40277
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "h-product",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/input.html
new file mode 100644
index 0000000..5fcf87b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/input.html
@@ -0,0 +1 @@
+
Raspberry Pi
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/output.json
new file mode 100644
index 0000000..61831b3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/test.json
new file mode 100644
index 0000000..51a3d3e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-product",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html
new file mode 100644
index 0000000..5015c2a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/input.html
@@ -0,0 +1,9 @@
+
+
Raspberry Pi
+
+
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json
new file mode 100644
index 0000000..a5b92c5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/output.json
@@ -0,0 +1,24 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
+ "description": [{
+ "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.",
+ "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."
+ }],
+ "url": ["http://www.raspberrypi.org/"],
+ "price": ["£29.95"],
+ "category": ["Computer","Education"],
+ "review": [{
+ "value": "4.5 out of 5",
+ "type": ["h-review"],
+ "properties": {
+ "rating": ["4.5"],
+ "name": ["4.5 out of 5"]
+ }
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json
new file mode 100644
index 0000000..ac3016f
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With h-review",
+ "description": "h-product",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/suite.json
new file mode 100644
index 0000000..e5336e6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-product/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-product parsing tests",
+ "description": "This page was design to test the parsing of h-product. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/input.html
new file mode 100644
index 0000000..886b827
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/input.html
@@ -0,0 +1,63 @@
+
+
Yorkshire Puddings
+
Makes 6 good sized Yorkshire puddings, the way my mum taught me
+
+
+
+
+
+
+ 4.5 stars out 5 based on
+ 35 reviews
+
+
+
+
+
Ingredients
+
+
1 egg
+
75g plain flour
+
70ml milk
+
60ml water
+
Pinch of salt
+
+
+
+
Time
+
+
Preparation 10 mins
+
Cook 25 mins
+
+
+
+
Instructions
+
+
+
Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole
+ Yorkshire pudding tins and place in the oven to heat through.
+
+
To make the batter, add all the flour into a bowl and beat in the eggs until smooth.
+ Gradually add the milk and water while beating the mixture. It should be smooth and
+ without lumps. Finally add a pinch of salt.
+
+
Make sure the oil is piping hot before pouring the batter evenly into the tins.
+ Place in the oven for 20-25 minutes until pudding have risen and look golden brown
+ Photo by dithie
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/output.json
new file mode 100644
index 0000000..2bd8227
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/output.json
@@ -0,0 +1,59 @@
+{
+ "items": [ {
+ "type": ["h-recipe"],
+ "properties": {
+ "name": ["Yorkshire Puddings"],
+ "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"],
+ "yield": ["6 good sized Yorkshire puddings"],
+ "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"],
+ "review": [
+ {
+ "value": "4.5 stars out 5 based on 35 reviews",
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "rating": ["4.5 stars out 5 based on"],
+ "average": ["4.5"],
+ "count": ["35"],
+ "name": ["4.5 stars out 5 based on 35 reviews"]
+ }
+ }
+ ],
+ "ingredient": [{
+ "value": "1 egg",
+ "html": "1 egg"
+ },{
+ "value": "75g plain flour",
+ "html": "75g plain flour"
+ },{
+ "value": "70ml milk",
+ "html": "70ml milk"
+ },{
+ "value": "60ml water",
+ "html": "60ml water"
+ },{
+ "value": "Pinch of salt",
+ "html": "Pinch of salt"
+ }],
+ "instructions": [{
+ "value": "Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole Yorkshire pudding tins and place in the oven to heat through. To make the batter, add all the flour into a bowl and beat in the eggs until smooth. Gradually add the milk and water while beating the mixture. It should be smooth and without lumps. Finally add a pinch of salt. Make sure the oil is piping hot before pouring the batter evenly into the tins. Place in the oven for 20-25 minutes until pudding have risen and look golden brown",
+ "html": "\n \n
Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through.
\n \n
To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.
\n \n
Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown
\n \n "
+ }],
+ "nutrition": [
+ "Calories: 125",
+ "Fat: 3.2g",
+ "Cholesterol: 77mg"
+ ],
+ "published": ["2011-10-27"],
+ "author": [
+ {
+ "value": "Glenn Jones",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Glenn Jones"],
+ "url": ["http://glennjones.net"]
+ }
+ }
+ ]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/test.json
new file mode 100644
index 0000000..d7ba2f7
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/all/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-recipe",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/input.html
new file mode 100644
index 0000000..0b207b8
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/input.html
@@ -0,0 +1,7 @@
+
+
Toast
+
+
Slice of bread
+
Butter
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/output.json
new file mode 100644
index 0000000..77b6f09
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/output.json
@@ -0,0 +1,15 @@
+{
+ "items": [{
+ "type": ["h-recipe"],
+ "properties": {
+ "name": ["Toast"],
+ "ingredient": [{
+ "value": "Slice of bread",
+ "html": "Slice of bread"
+ },{
+ "value": "Butter",
+ "html": "Butter"
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/test.json
new file mode 100644
index 0000000..aa0bdb5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/minimum/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "h-recipe",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/suite.json
new file mode 100644
index 0000000..6c37f97
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-recipe/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-recipe parsing tests",
+ "description": "This page was design to test the parsing of h-recipe. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/affiliation/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/affiliation/input.html
new file mode 100644
index 0000000..87731ce
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/affiliation/input.html
@@ -0,0 +1,12 @@
+
+
+ Tim Berners-Lee,
+ invented the World Wide Web.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/output.json
new file mode 100644
index 0000000..29980f9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/output.json
@@ -0,0 +1,37 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "summary": ["Invented the World Wide Web."],
+ "contact": [{
+ "value": "MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. Tel:+1 (617) 253 5702 Email:timbl@w3.org",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["MIT"],
+ "street-address": ["32 Vassar Street"],
+ "extended-address": ["Room 32-G524"],
+ "locality": ["Cambridge"],
+ "region": ["MA"],
+ "postal-code": ["02139"],
+ "country-name": ["USA"],
+ "tel": ["+1 (617) 253 5702"],
+ "email": ["mailto:timbl@w3.org"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["MIT"],
+ "street-address": ["32 Vassar Street"],
+ "extended-address": ["Room 32-G524"],
+ "locality": ["Cambridge"],
+ "region": ["MA"],
+ "postal-code": ["02139"],
+ "country-name": ["USA"],
+ "tel": ["+1 (617) 253 5702"],
+ "email": ["timbl@w3.org"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/test.json
new file mode 100644
index 0000000..17f1b96
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/contact/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Contact",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/input.html
new file mode 100644
index 0000000..2466140
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/input.html
@@ -0,0 +1,13 @@
+
+
Tim Berners-Lee
+
+
Director of the World Wide Web Foundation
+
+
Invented the World Wide Web.
+
+ The Queen's College, Oxford University,
+ BA Hons (I) Physics
+ –
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/output.json
new file mode 100644
index 0000000..21072c6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/output.json
@@ -0,0 +1,52 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "summary": ["Invented the World Wide Web."],
+ "contact": [{
+ "value": "Director of the World Wide Web Foundation",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Director of the World Wide Web Foundation"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ }],
+ "education": [{
+ "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976",
+ "type": ["h-event", "h-card"],
+ "properties": {
+ "name": ["The Queen's College, Oxford University"],
+ "org": ["The Queen's College, Oxford University"],
+ "description": ["BA Hons (I) Physics"],
+ "start": ["1973-09"],
+ "end": ["1976-06"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Director of the World Wide Web Foundation"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ },{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["The Queen's College, Oxford University"],
+ "org": ["The Queen's College, Oxford University"],
+ "description": ["BA Hons (I) Physics"],
+ "start": ["1973-09"],
+ "end": ["1976-06"]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["World Wide Web Foundation"],
+ "org": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/test.json
new file mode 100644
index 0000000..ed6b2ef
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/education/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Educational experience",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/input.html
new file mode 100644
index 0000000..28943c5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/input.html
@@ -0,0 +1 @@
+
Tim Berners-Lee, invented the World Wide Web.
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/output.json
new file mode 100644
index 0000000..d5dd9a4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "name": ["Tim Berners-Lee, invented the World Wide Web."]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/test.json
new file mode 100644
index 0000000..60a8b40
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/input.html
new file mode 100644
index 0000000..d5b1424
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/input.html
@@ -0,0 +1,12 @@
+
+
+ Tim Berners-Lee,
+ invented the World Wide Web.
+
+ Skills:
+
+
information systems
+
advocacy
+
leadership
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/output.json
new file mode 100644
index 0000000..9624e09
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/output.json
@@ -0,0 +1,10 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "summary": ["invented the World Wide Web"],
+ "skill": ["information systems", "advocacy", "leadership"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/test.json
new file mode 100644
index 0000000..66d35d3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/skill/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Skills",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/suite.json
new file mode 100644
index 0000000..170ea00
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-resume parsing tests",
+ "description": "This page was design to test the parsing of h-resume. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/input.html
new file mode 100644
index 0000000..e1d3a11
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/input.html
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/output.json
new file mode 100644
index 0000000..dc4ce52
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/output.json
@@ -0,0 +1,52 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "summary": ["Invented the World Wide Web."],
+ "contact": [{
+ "value": "Director of the World Wide Web Foundation",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Director of the World Wide Web Foundation"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ }],
+ "experience": [{
+ "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)",
+ "type": ["h-event", "h-card"],
+ "properties": {
+ "name": ["World Wide Web Foundation"],
+ "org": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Director of the World Wide Web Foundation"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ },{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["World Wide Web Foundation"],
+ "org": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["World Wide Web Foundation"],
+ "org": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/test.json
new file mode 100644
index 0000000..828c387
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-resume/work/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Work experience",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html
new file mode 100644
index 0000000..713d7d6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/input.html
@@ -0,0 +1,13 @@
+
+
+
Fullfrontal
+
A one day JavaScript Conference held in Brighton
+
+
+
+
+ 9.9 out of
+ 10
+ based on 62 reviews
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json
new file mode 100644
index 0000000..3b072d8
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/output.json
@@ -0,0 +1,21 @@
+{
+ "items": [{
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "item": [{
+ "value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012",
+ "type": ["h-event"],
+ "properties": {
+ "name": ["Fullfrontal"],
+ "description": ["A one day JavaScript Conference held in Brighton"],
+ "start": ["2012-11-09"]
+ }
+ }],
+ "rating": ["9.9"],
+ "average": ["9.9"],
+ "best": ["10"],
+ "count": ["62"],
+ "name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json
new file mode 100644
index 0000000..52727d9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/hevent/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With p-item as a h-event",
+ "description": "hreview-aggregate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html
new file mode 100644
index 0000000..233a1d5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/input.html
@@ -0,0 +1,8 @@
+
+
Mediterranean Wraps
+
+ Customers flock to this small restaurant for their
+ tasty falafel and shawerma wraps and welcoming staff.
+
+ 4.5 out of 5
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json
new file mode 100644
index 0000000..c4f7da0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/output.json
@@ -0,0 +1,17 @@
+{
+ "items": [{
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "item": [{
+ "value": "Mediterranean Wraps",
+ "type": ["h-item"],
+ "properties": {
+ "name": ["Mediterranean Wraps"]
+ }
+ }],
+ "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."],
+ "rating": ["4.5"],
+ "name": ["Mediterranean Wraps Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 4.5 out of 5"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json
new file mode 100644
index 0000000..274d9c9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "h-review-aggregate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html
new file mode 100644
index 0000000..12b3a31
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/input.html
@@ -0,0 +1,18 @@
+
+
+
Mediterranean Wraps
+
+ 433 S California Ave,
+ Palo Alto,
+ CA -
+ (650) 321-8189
+
+
+ Customers flock to this small restaurant for their
+ tasty falafel and shawerma wraps and welcoming staff.
+
+ 9.2 out of
+ 10
+ based on 17 reviews
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json
new file mode 100644
index 0000000..fbe8cd6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/output.json
@@ -0,0 +1,24 @@
+{
+ "items": [{
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "item": [{
+ "value": "Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Mediterranean Wraps"],
+ "street-address": ["433 S California Ave"],
+ "locality": ["Palo Alto"],
+ "region": ["CA"],
+ "tel": ["(650) 321-8189"]
+ }
+ }],
+ "summary": ["Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff."],
+ "rating": ["9.2"],
+ "average": ["9.2"],
+ "best": ["10"],
+ "count": ["17"],
+ "name": ["Mediterranean Wraps 433 S California Ave, Palo Alto, CA - (650) 321-8189 Customers flock to this small restaurant for their tasty falafel and shawerma wraps and welcoming staff. 9.2 out of 10 based on 17 reviews"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json
new file mode 100644
index 0000000..210c962
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-review-aggregate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/suite.json
new file mode 100644
index 0000000..364b3b0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review-aggregate/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-review-aggregate parsing tests",
+ "description": "This page was design to test the parsing of h-review-aggregate. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/input.html
new file mode 100644
index 0000000..3c1d515
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/input.html
@@ -0,0 +1 @@
+Crepes on Cole
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/output.json
new file mode 100644
index 0000000..4e46571
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "url": ["https://plus.google.com/116941523817079328322/about"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/test.json
new file mode 100644
index 0000000..0f2c720
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/hyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "h-review",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/implieditem/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/implieditem/input.html
new file mode 100644
index 0000000..63c0b50
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/implieditem/input.html
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/output.json
new file mode 100644
index 0000000..5d0658e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/output.json
@@ -0,0 +1,18 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+
+ "item": [{
+ "value": "Crepes on Cole",
+ "type": ["h-item"],
+ "properties": {
+ "photo": ["http://example.com/images/photo.gif"],
+ "name": ["Crepes on Cole"],
+ "url": ["http://example.com/crepeoncole"]
+ }
+ }],
+ "rating": ["5"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/test.json
new file mode 100644
index 0000000..70f215e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/item/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With item",
+ "description": "h-review",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/input.html
new file mode 100644
index 0000000..c85e031
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/input.html
@@ -0,0 +1 @@
+
Crepes on Cole
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/output.json
new file mode 100644
index 0000000..12e27cf
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/test.json
new file mode 100644
index 0000000..5517189
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "h-review",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/input.html
new file mode 100644
index 0000000..1d8de16
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/input.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/output.json
new file mode 100644
index 0000000..a104efa
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "photo": ["http://example.com/images/photo.gif"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/test.json
new file mode 100644
index 0000000..0771b6a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/photo/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a photo",
+ "description": "h-review",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/suite.json
new file mode 100644
index 0000000..a8e76d2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-review parsing tests",
+ "description": "This page was design to test the parsing of h-review. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/input.html
new file mode 100644
index 0000000..d96e965
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/input.html
@@ -0,0 +1,23 @@
+
+ 5 out of 5 stars
+
Crepes on Cole is awesome
+
+ Reviewer: Tantek -
+
+
+
+
+ Crepes on Cole is one of the best little
+ creperies in San Francisco.
+ Excellent food and service. Plenty of tables in a variety of sizes
+ for parties large and small. Window seating makes for excellent
+ people watching to/from the N-Judah which stops right outside.
+ I've had many fun social gatherings here, as well as gotten
+ plenty of work done thanks to neighborhood WiFi.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/output.json
new file mode 100644
index 0000000..88d2edb
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/output.json
@@ -0,0 +1,38 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "rating": ["5"],
+ "name": ["Crepes on Cole is awesome"],
+ "reviewer": [{
+ "value": "Reviewer: Tantek -",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"]
+ }
+ }],
+ "description": [{
+ "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.",
+ "html": "\n
\n Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n
\n "
+ }],
+ "item": [{
+ "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "org": ["Crepes on Cole"],
+ "adr": [{
+ "value": "San Francisco",
+ "type": ["h-adr"],
+ "properties": {
+ "locality": ["San Francisco"],
+ "name": ["San Francisco"]
+ }
+ }]
+ }
+ }],
+ "category": ["crepe"],
+ "url": ["http://example.com/crepe"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/test.json
new file mode 100644
index 0000000..824d1db
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/h-review/vcard/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With vcard item",
+ "description": "h-review",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/input.html
new file mode 100644
index 0000000..087b54d
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/input.html
@@ -0,0 +1,41 @@
+
+ The 4th Microformat party will be on
+
+
+ , from
+ 07:00:00pm
+
+
+ , from
+ 07:00:00am
+
+
+ , from
+ 07:00pm
+
+
+ , from
+ 07pm
+
+
+ , from
+ 7pm
+
+
+ , from
+ 7:00pm
+
+
+ , from
+ 07:00p.m.
+
+
+ , from
+ 07:00PM
+
+
+ , from
+ 7:00am
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/output.json
new file mode 100644
index 0000000..812afaa
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/output.json
@@ -0,0 +1,19 @@
+{
+ "items": [{
+ "type": ["h-event"],
+ "properties": {
+ "name": ["The 4th Microformat party"],
+ "start": [
+ "2009-06-26T19:00:00",
+ "2009-06-26T07:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T19:00:00",
+ "2009-06-26T07:00:00"
+ ]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/test.json
new file mode 100644
index 0000000..49104ff
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/ampm/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Meridiem time formats (am pm)",
+ "description": "hcalendar",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/attendees/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/attendees/input.html
new file mode 100644
index 0000000..2379295
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcalendar/attendees/input.html
@@ -0,0 +1,12 @@
+
+ CPJ Online Press Freedom Summit
+ () in
+ San Francisco.
+ Attendees:
+
John Doe uses PigeonMail 2.1 or Outlook 2007 for email.
+
+
Addresses:
+
+
+
+ Work:
+ North Street,
+ Brighton,
+ United Kingdom
+
+
+
+
+
+ Home:
+ West Street,
+ Brighton,
+ United Kingdom
+
+
+
+
+
In emergency contact: Jane Doe or Dave Doe.
+
Key: hd02$Gfu*d%dh87KTa2=23934532479
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/output.json
new file mode 100644
index 0000000..72af9bf
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/output.json
@@ -0,0 +1,51 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["John Doe"],
+ "given-name": ["John"],
+ "family-name": ["Doe"],
+ "sound": ["http://www.madgex.com/johndoe.mpeg"],
+ "photo": ["http://example.com/images/photo.gif"],
+ "nickname": ["Man with no name","Lost boy"],
+ "note": [
+ "John Doe is one of those names you always have issues with.",
+ "It can be a real problem booking a hotel room with the name John Doe."
+ ],
+ "url": ["http://www.madgex.com/", "http://www.webfeetmedia.com/"],
+ "org": ["Madgex","Web Feet Media Ltd"],
+ "title": ["Creative Director", "Owner"],
+ "category": ["design", "development", "web"],
+ "tel": ["+1 415 555 100", "+1 415 555 200", "+1 415 555 300"],
+ "email": ["mailto:john.doe@madgex.com", "mailto:john.doe@webfeetmedia.com"],
+ "mailer": ["PigeonMail 2.1","Outlook 2007"],
+ "adr": [{
+ "value": "Work: North Street, Brighton, United Kingdom",
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["North Street"],
+ "locality": ["Brighton"],
+ "country-name": ["United Kingdom"]
+ }
+ },{
+ "value": "Home: West Street, Brighton, United Kingdom",
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["West Street"],
+ "locality": ["Brighton"],
+ "country-name": ["United Kingdom"]
+ }
+ }],
+ "label": ["Work: North Street, Brighton, United Kingdom", "Home: West Street, Brighton, United Kingdom"],
+ "agent": ["Jane Doe",
+ {
+ "value": "Dave Doe",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Dave Doe"]
+ }
+ }],
+ "key": ["hd02$Gfu*d%dh87KTa2=23934532479"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/test.json
new file mode 100644
index 0000000..41ad469
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/multiple/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Multiple occurrence properties",
+ "description": "hcard",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/input.html
new file mode 100644
index 0000000..295b8d6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/input.html
@@ -0,0 +1,10 @@
+
+
+ Dr
+ John
+ P
+ Doe
+
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/output.json
new file mode 100644
index 0000000..4f49bfb
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/output.json
@@ -0,0 +1,13 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "honorific-prefix": ["Dr"],
+ "given-name": ["John"],
+ "additional-name": ["Peter"],
+ "family-name": ["Doe"],
+ "honorific-suffix": ["MSc","PHD"],
+ "name": ["Dr John P Doe"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/test.json
new file mode 100644
index 0000000..0ece186
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/name/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Name properties",
+ "description": "hcard",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/input.html
new file mode 100644
index 0000000..c7a0ec0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/input.html
@@ -0,0 +1,14 @@
+
+
+
John Doe
+
Birthday: January 1st, 2000
+
Role: Designer
+
Location: Brighton
+
Time zone: Eastern Standard Time
+
+
Profile details:
+
Profile id: http://example.com/profiles/johndoe
+
Details are: Public
+
Last updated: January 1st, 2008 - 13:45
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/output.json
new file mode 100644
index 0000000..f824372
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/output.json
@@ -0,0 +1,23 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["John Doe"],
+ "given-name": ["John"],
+ "sort-string": ["John"],
+ "bday": ["2000-01-01T00:00:00-0800"],
+ "role": ["Designer"],
+ "geo": [{
+ "value": "Brighton",
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["30.267991;-97.739568"]
+ }
+ }],
+ "tz": ["-05:00"],
+ "uid": ["http://example.com/profiles/johndoe"],
+ "class": ["Public"],
+ "rev": ["2008-01-01T13:45:00"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/test.json
new file mode 100644
index 0000000..89edc07
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/single/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Single occurrence properties",
+ "description": "hcard",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/suite.json
new file mode 100644
index 0000000..c1dab4e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hcard/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hcard parsing tests",
+ "description": "This page was design to test the parsing of hcard and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html
new file mode 100644
index 0000000..499f16b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/input.html
@@ -0,0 +1 @@
+microformats.org at 7
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json
new file mode 100644
index 0000000..9ee4ebd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json
new file mode 100644
index 0000000..e401433
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "hentry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/input.html
new file mode 100644
index 0000000..499f16b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/input.html
@@ -0,0 +1 @@
+microformats.org at 7
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/output.json
new file mode 100644
index 0000000..9ee4ebd
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "url": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/test.json
new file mode 100644
index 0000000..a18e1c5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "hentry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/suite.json
new file mode 100644
index 0000000..e47be4e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hentry parsing tests",
+ "description": "This page was design to test the parsing of hentry and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/input.html
new file mode 100644
index 0000000..2c86ec6
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/input.html
@@ -0,0 +1,19 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/output.json
new file mode 100644
index 0000000..edd5aeb
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/output.json
@@ -0,0 +1,28 @@
+{
+ "items": [{
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "content": [{
+ "value": "Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service",
+ "html": "\n
Last week the microformats.org community \n celebrated its 7th birthday at a gathering hosted by Mozilla in \n San Francisco and recognized accomplishments, challenges, and \n opportunities.
\n\n
The microformats tagline “humans first, machines second” \n forms the basis of many of our \n principles, and \n in that regard, we’d like to recognize a few people and \n thank them for their years of volunteer service
\n "
+ }],
+ "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."],
+ "updated": ["2012-06-25T17:08:26"],
+ "author": [{
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/test.json
new file mode 100644
index 0000000..3f65bcc
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hentry/summarycontent/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Entry with summary and content",
+ "description": "hentry",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/input.html
new file mode 100644
index 0000000..f27084a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/input.html
@@ -0,0 +1,37 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/output.json
new file mode 100644
index 0000000..54109ed
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/output.json
@@ -0,0 +1,62 @@
+{
+ "items": [{
+ "type": ["h-news"],
+ "properties": {
+ "entry": [{
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "summary": ["Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities."],
+ "updated": ["2012-06-25T17:08:26"],
+ "author": {
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }
+ }
+ }],
+ "dateline": [{
+ "value": "San Francisco, CA",
+ "type": ["h-card"],
+ "properties": {
+ "adr": [{
+ "value": "San Francisco, CA",
+ "type": ["h-adr"],
+ "properties": {
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "name": ["San Francisco, CA"]
+ }
+ }],
+ "name": ["San Francisco, CA"]
+ }
+ }],
+ "geo": [{
+ "value": "37.774921;-122.445202",
+ "type": ["h-geo"],
+ "properties": {
+ "name": ["37.774921;-122.445202"]
+ }
+ }],
+ "source-org": [{
+ "value": "microformats.org",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["microformats.org"],
+ "url": ["http://microformats.org/"]
+ }
+ }],
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek San Francisco, CA (Geo: 37.774921;-122.445202) microformats.org Publishing policy"]
+ }
+ },{
+ "type": ["rel"],
+ "properties": {
+ "bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"],
+ "principles": ["http://microformats.org/wiki/Category:public_domain_license"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/test.json
new file mode 100644
index 0000000..c9d3203
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/all/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With dateline vcard",
+ "description": "hnews",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/input.html
new file mode 100644
index 0000000..6dae51d
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/input.html
@@ -0,0 +1,25 @@
+
Last week the microformats.org community
+ celebrated its 7th birthday at a gathering hosted by Mozilla in
+ San Francisco and recognized accomplishments, challenges, and
+ opportunities.
+
+
The microformats tagline “humans first, machines second”
+ forms the basis of many of our
+ principles, and
+ in that regard, we’d like to recognize a few people and
+ thank them for their years of volunteer service
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/output.json
new file mode 100644
index 0000000..c57b8f4
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/output.json
@@ -0,0 +1,36 @@
+{
+ "items": [{
+ "type": ["h-news"],
+ "properties": {
+ "entry": [{
+ "value": "microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek",
+ "type": ["h-entry"],
+ "properties": {
+ "name": ["microformats.org at 7"],
+ "author": {
+ "value": "Tantek",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"],
+ "url": ["http://tantek.com/"]
+ }
+ }
+ }
+ }],
+ "source-org": [{
+ "value": "microformats.org",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["microformats.org"],
+ "url": ["http://microformats.org/"]
+ }
+ }],
+ "name": ["microformats.org at 7 Last week the microformats.org community celebrated its 7th birthday at a gathering hosted by Mozilla in San Francisco and recognized accomplishments, challenges, and opportunities. The microformats tagline “humans first, machines second” forms the basis of many of our principles, and in that regard, we’d like to recognize a few people and thank them for their years of volunteer service Updated June 25th, 2012 by Tantek microformats.org"]
+ }
+ },{
+ "type": ["rel"],
+ "properties": {
+ "bookmark": ["http://microformats.org/2012/06/25/microformats-org-at-7"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/test.json
new file mode 100644
index 0000000..959d7b0
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/minimum/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "hnews",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/suite.json
new file mode 100644
index 0000000..a4316ec
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hnews/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hnews parsing tests",
+ "description": "This page was design to test the parsing of hnews. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/input.html
new file mode 100644
index 0000000..099123f
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/input.html
@@ -0,0 +1,25 @@
+
+
Raspberry Pi
+
+
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.
From:
+ The Raspberry Pi Foundation -
+
+ Cambridge
+ UK
+
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/output.json
new file mode 100644
index 0000000..dc16581
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/output.json
@@ -0,0 +1,43 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
+ "description": [{
+ "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.",
+ "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."
+ }],
+ "url": ["http://www.raspberrypi.org/"],
+ "price": ["£29.95"],
+ "review": [{
+ "value": "9.2 out of 10 based on 178 reviews",
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "rating": ["9.2"],
+ "average": ["9.2"],
+ "best": ["10"],
+ "count": ["178"]
+ }
+ }],
+ "category": ["Computer","Education"],
+ "brand": [{
+ "value": "From: The Raspberry Pi Foundation - Cambridge UK",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["The Raspberry Pi Foundation"],
+ "org": ["The Raspberry Pi Foundation"],
+ "adr": [{
+ "value": "Cambridge UK",
+ "type": ["h-adr"],
+ "properties": {
+ "locality": ["Cambridge"],
+ "country-name": ["UK"],
+ "name": ["Cambridge UK"]
+ }
+ }]
+ }
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/test.json
new file mode 100644
index 0000000..928d51a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/aggregate/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With h-review-aggregate",
+ "description": "hproduct",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html
new file mode 100644
index 0000000..96be7c2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/input.html
@@ -0,0 +1 @@
+Raspberry Pi
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json
new file mode 100644
index 0000000..b073a3b
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "url": ["http://www.raspberrypi.org/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json
new file mode 100644
index 0000000..8ecc35e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "hproduct",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/input.html
new file mode 100644
index 0000000..3b27277
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/input.html
@@ -0,0 +1 @@
+
Raspberry Pi
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/output.json
new file mode 100644
index 0000000..61831b3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/test.json
new file mode 100644
index 0000000..7d8211f
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "hproduct",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html
new file mode 100644
index 0000000..ba5d057
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/input.html
@@ -0,0 +1,12 @@
+
+
Raspberry Pi
+
+
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json
new file mode 100644
index 0000000..a5b92c5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/output.json
@@ -0,0 +1,24 @@
+{
+ "items": [{
+ "type": ["h-product"],
+ "properties": {
+ "name": ["Raspberry Pi"],
+ "photo": ["http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg"],
+ "description": [{
+ "value": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.",
+ "html": "The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming."
+ }],
+ "url": ["http://www.raspberrypi.org/"],
+ "price": ["£29.95"],
+ "category": ["Computer","Education"],
+ "review": [{
+ "value": "4.5 out of 5",
+ "type": ["h-review"],
+ "properties": {
+ "rating": ["4.5"],
+ "name": ["4.5 out of 5"]
+ }
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json
new file mode 100644
index 0000000..90f44e9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/simpleproperties/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With h-review",
+ "description": "hproduct",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/suite.json
new file mode 100644
index 0000000..e347f49
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hproduct/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hproduct parsing tests",
+ "description": "This page was design to test the parsing of hproduct. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/input.html
new file mode 100644
index 0000000..886b827
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/input.html
@@ -0,0 +1,63 @@
+
+
Yorkshire Puddings
+
Makes 6 good sized Yorkshire puddings, the way my mum taught me
+
+
+
+
+
+
+ 4.5 stars out 5 based on
+ 35 reviews
+
+
+
+
+
Ingredients
+
+
1 egg
+
75g plain flour
+
70ml milk
+
60ml water
+
Pinch of salt
+
+
+
+
Time
+
+
Preparation 10 mins
+
Cook 25 mins
+
+
+
+
Instructions
+
+
+
Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole
+ Yorkshire pudding tins and place in the oven to heat through.
+
+
To make the batter, add all the flour into a bowl and beat in the eggs until smooth.
+ Gradually add the milk and water while beating the mixture. It should be smooth and
+ without lumps. Finally add a pinch of salt.
+
+
Make sure the oil is piping hot before pouring the batter evenly into the tins.
+ Place in the oven for 20-25 minutes until pudding have risen and look golden brown
+ Photo by dithie
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/output.json
new file mode 100644
index 0000000..6312009
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/output.json
@@ -0,0 +1,49 @@
+{
+ "items": [ {
+ "type": ["h-recipe"],
+ "properties": {
+ "name": ["Yorkshire Puddings"],
+ "summary": ["Makes 6 good sized Yorkshire puddings, the way my mum taught me"],
+ "yield": ["6 good sized Yorkshire puddings"],
+ "photo": ["http://codebits.glennjones.net/semantic/yorkshire-puddings.jpg"],
+ "review": [
+ {
+ "value": "4.5 stars out 5 based on 35 reviews",
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "rating": ["4.5 stars out 5 based on"],
+ "average": ["4.5"],
+ "count": ["35"],
+ "name": ["4.5 stars out 5 based on 35 reviews"]
+ }
+ }
+ ],
+ "ingredient": [
+ "1 egg",
+ "75g plain flour",
+ "70ml milk",
+ "60ml water",
+ "Pinch of salt"
+ ],
+ "instructions": [
+ "\n \n
Pre-heat oven to 230C or gas mark 8. Pour the vegetable oil evenly into 2 x 4-hole \n Yorkshire pudding tins and place in the oven to heat through.
\n \n
To make the batter, add all the flour into a bowl and beat in the eggs until smooth. \n Gradually add the milk and water while beating the mixture. It should be smooth and \n without lumps. Finally add a pinch of salt.
\n \n
Make sure the oil is piping hot before pouring the batter evenly into the tins. \n Place in the oven for 20-25 minutes until pudding have risen and look golden brown
\n \n "
+ ],
+ "nutrition": [
+ "Calories: 125",
+ "Fat: 3.2g",
+ "Cholesterol: 77mg"
+ ],
+ "published": ["2011-10-27"],
+ "author": [
+ {
+ "value": "Glenn Jones",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Glenn Jones"],
+ "url": ["http://glennjones.net"]
+ }
+ }
+ ]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/test.json
new file mode 100644
index 0000000..d7ba2f7
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/all/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Broken into properties",
+ "description": "h-recipe",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/input.html
new file mode 100644
index 0000000..0b207b8
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/input.html
@@ -0,0 +1,7 @@
+
+
Toast
+
+
Slice of bread
+
Butter
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/output.json
new file mode 100644
index 0000000..29a455e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-recipe"],
+ "properties": {
+ "name": ["Toast"],
+ "ingredient": ["Slice of bread", "Butter"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/test.json
new file mode 100644
index 0000000..aa0bdb5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/minimum/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "h-recipe",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/suite.json
new file mode 100644
index 0000000..6c37f97
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hrecipe/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-recipe parsing tests",
+ "description": "This page was design to test the parsing of h-recipe. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/affiliation/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/affiliation/input.html
new file mode 100644
index 0000000..25f2110
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/affiliation/input.html
@@ -0,0 +1,12 @@
+
+
+ Tim Berners-Lee,
+ invented the World Wide Web.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/output.json
new file mode 100644
index 0000000..e083fbf
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/output.json
@@ -0,0 +1,15 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "contact": [{
+ "value": "Tim Berners-Lee",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tim Berners-Lee"]
+ }
+ }],
+ "summary": ["invented the World Wide Web"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/test.json
new file mode 100644
index 0000000..66d35d3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/skill/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Skills",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/suite.json
new file mode 100644
index 0000000..8336b38
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hresume parsing tests",
+ "description": "This page was design to test the parsing of hresume and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/work/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/work/input.html
new file mode 100644
index 0000000..e360173
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hresume/work/input.html
@@ -0,0 +1,15 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json
new file mode 100644
index 0000000..9d598f5
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/output.json
@@ -0,0 +1,18 @@
+{
+ "items": [{
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "item": [{
+ "value": "",
+ "type": ["h-item"],
+ "properties": {
+ "name": ["Mediterranean Wraps"],
+ "url": ["http://example.com/mediterraneanwraps"]
+ }
+ }],
+ "rating": ["4.5"],
+ "count": ["6"],
+ "name": ["Mediterranean Wraps - Rated: 4.5 out of 5 (6 reviews)"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json
new file mode 100644
index 0000000..449cf08
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/justahyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Minimum properties",
+ "description": "hreview-aggregate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/suite.json
new file mode 100644
index 0000000..373baf9
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hreview-aggregate parsing tests",
+ "description": "This page was design to test the parsing of hreview-aggregate. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html
new file mode 100644
index 0000000..e017442
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/input.html
@@ -0,0 +1,13 @@
+
+
+
Fullfrontal
+
A one day JavaScript Conference held in Brighton
+
+
+
+
+ 9.9 out of
+ 10
+ based on 62 reviews
+
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json
new file mode 100644
index 0000000..2ed7d73
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/output.json
@@ -0,0 +1,21 @@
+{
+ "items": [{
+ "type": ["h-review-aggregate"],
+ "properties": {
+ "item": [{
+ "value": "Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012",
+ "type": ["h-item","h-event"],
+ "properties": {
+ "name": ["Fullfrontal"],
+ "description": ["A one day JavaScript Conference held in Brighton"],
+ "start": ["2012-11-09"]
+ }
+ }],
+ "rating": ["9.9"],
+ "average": ["9.9"],
+ "best": ["10"],
+ "count": ["62"],
+ "name": ["Fullfrontal A one day JavaScript Conference held in Brighton 9th November 2012 9.9 out of 10 based on 62 reviews"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json
new file mode 100644
index 0000000..3e04d62
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview-aggregate/vevent/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With item as a vevent",
+ "description": "hreview-aggregate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/input.html
new file mode 100644
index 0000000..b3d81c1
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/input.html
@@ -0,0 +1 @@
+Crepes on Cole
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/output.json
new file mode 100644
index 0000000..4e46571
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "url": ["https://plus.google.com/116941523817079328322/about"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/test.json
new file mode 100644
index 0000000..da3fa25
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/hyperlink/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a hyperlink",
+ "description": "hreview",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/implieditem/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/implieditem/input.html
new file mode 100644
index 0000000..3f835b1
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/implieditem/input.html
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/output.json
new file mode 100644
index 0000000..5d0658e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/output.json
@@ -0,0 +1,18 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+
+ "item": [{
+ "value": "Crepes on Cole",
+ "type": ["h-item"],
+ "properties": {
+ "photo": ["http://example.com/images/photo.gif"],
+ "name": ["Crepes on Cole"],
+ "url": ["http://example.com/crepeoncole"]
+ }
+ }],
+ "rating": ["5"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/test.json
new file mode 100644
index 0000000..36d9e02
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/item/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With item",
+ "description": "hreview",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/input.html
new file mode 100644
index 0000000..fecbd66
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/input.html
@@ -0,0 +1 @@
+
Crepes on Cole
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/output.json
new file mode 100644
index 0000000..12e27cf
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/test.json
new file mode 100644
index 0000000..da57892
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/justaname/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a name",
+ "description": "hreview",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/input.html
new file mode 100644
index 0000000..60f6670
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/input.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/output.json
new file mode 100644
index 0000000..a104efa
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/output.json
@@ -0,0 +1,9 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "photo": ["http://example.com/images/photo.gif"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/test.json
new file mode 100644
index 0000000..400ce3c
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/photo/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Just a photo",
+ "description": "hreview",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/suite.json
new file mode 100644
index 0000000..166d489
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "hreview parsing tests",
+ "description": "This page was design to test the parsing of hreview. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/input.html
new file mode 100644
index 0000000..02ba16a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/input.html
@@ -0,0 +1,23 @@
+
+ 5 out of 5 stars
+
Crepes on Cole is awesome
+
+ Reviewer: Tantek -
+
+
+
+
+ Crepes on Cole is one of the best little
+ creperies in San Francisco.
+ Excellent food and service. Plenty of tables in a variety of sizes
+ for parties large and small. Window seating makes for excellent
+ people watching to/from the N-Judah which stops right outside.
+ I've had many fun social gatherings here, as well as gotten
+ plenty of work done thanks to neighborhood WiFi.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/output.json
new file mode 100644
index 0000000..e95e65c
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/output.json
@@ -0,0 +1,38 @@
+{
+ "items": [{
+ "type": ["h-review"],
+ "properties": {
+ "rating": ["5"],
+ "name": ["Crepes on Cole is awesome"],
+ "reviewer": [{
+ "value": "Reviewer: Tantek -",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tantek"]
+ }
+ }],
+ "description": [{
+ "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.",
+ "html": "\n
\n Crepes on Cole is one of the best little \n creperies in San Francisco.\n Excellent food and service. Plenty of tables in a variety of sizes \n for parties large and small. Window seating makes for excellent \n people watching to/from the N-Judah which stops right outside. \n I've had many fun social gatherings here, as well as gotten \n plenty of work done thanks to neighborhood WiFi.\n
\n "
+ }],
+ "item": [{
+ "value": "Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.",
+ "type": ["h-item", "h-card"],
+ "properties": {
+ "name": ["Crepes on Cole"],
+ "org": ["Crepes on Cole"],
+ "adr": [{
+ "value": "San Francisco",
+ "type": ["h-adr"],
+ "properties": {
+ "locality": ["San Francisco"],
+ "name": ["San Francisco"]
+ }
+ }]
+ }
+ }],
+ "category": ["crepe"],
+ "url": ["http://example.com/crepe"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/test.json
new file mode 100644
index 0000000..74ef602
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/hreview/vcard/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "With vcard item",
+ "description": "hreview",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/input.html
new file mode 100644
index 0000000..b031298
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/input.html
@@ -0,0 +1,16 @@
+
+ Brendan Eich
+
+
+ Mitchell Baker
+
+
+
Mozilla
+
+ 665 3rd St.
+ Suite 207
+ San Francisco,
+ CA
+ 94107
+ U.S.A.
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/output.json
new file mode 100644
index 0000000..8b0516a
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/output.json
@@ -0,0 +1,41 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Brendan Eich"],
+ "org": ["Mozilla"],
+ "adr": [{
+ "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["665 3rd St."],
+ "extended-address": ["Suite 207"],
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "postal-code": ["94107"],
+ "country-name": ["U.S.A."],
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Mitchell Baker"],
+ "org": ["Mozilla"],
+ "adr": [{
+ "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",
+ "type": ["h-adr"],
+ "properties": {
+ "street-address": ["665 3rd St."],
+ "extended-address": ["Suite 207"],
+ "locality": ["San Francisco"],
+ "region": ["CA"],
+ "postal-code": ["94107"],
+ "country-name": ["U.S.A."],
+ "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
+ }
+ }]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/test.json
new file mode 100644
index 0000000..94d1953
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/hcarditemref/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "itemref include pattern - h-card",
+ "description": "h-card",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/heventitemref/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/heventitemref/input.html
new file mode 100644
index 0000000..cef8865
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/includes/heventitemref/input.html
@@ -0,0 +1,25 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json
new file mode 100644
index 0000000..2bd57e3
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/output.json
@@ -0,0 +1,51 @@
+{
+ "items": [{
+ "type": ["h-resume"],
+ "properties": {
+ "contact": [{
+ "value": "Tim Berners-Lee Director of the World Wide Web Foundation",
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ }],
+ "summary": ["Invented the World Wide Web."],
+ "experience": [{
+ "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)",
+ "type": ["h-event", "h-card"],
+ "properties": {
+ "org": ["World Wide Web Foundation"],
+ "name": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"],
+ "title": ["Director"]
+ }
+ }]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Tim Berners-Lee"],
+ "title": ["Director of the World Wide Web Foundation"]
+ }
+ },{
+ "type": ["h-event"],
+ "properties": {
+ "org": ["World Wide Web Foundation"],
+ "name": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"],
+ "start": ["2009-01-18"],
+ "duration": ["P2Y11M"]
+ }
+ },{
+ "type": ["h-card"],
+ "properties": {
+ "title": ["Director"],
+ "name": ["World Wide Web Foundation"],
+ "org": ["World Wide Web Foundation"],
+ "url": ["http://www.webfoundation.org/"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json
new file mode 100644
index 0000000..9417cd7
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/mixedroots/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Mixed roots form different versions",
+ "description": "h-resume",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/suite.json
new file mode 100644
index 0000000..2db8de1
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "h-adr parsing tests",
+ "description": "This page was design to test the parsing of mark-up which mixes version 1 and 2 microformats. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html
new file mode 100644
index 0000000..f9b4d6e
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/input.html
@@ -0,0 +1 @@
+
Frances Berriman
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json
new file mode 100644
index 0000000..62f2748
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [{
+ "type": ["h-card"],
+ "properties": {
+ "name": ["Frances Berriman"]
+ }
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json
new file mode 100644
index 0000000..c68e727
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/mixed-versions/tworoots/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "Roots from two versions",
+ "description": "h-card",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/input.html
new file mode 100644
index 0000000..c850745
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/input.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/output.json
new file mode 100644
index 0000000..032924c
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/output.json
@@ -0,0 +1,8 @@
+{
+ "items": [],
+ "alternates": [{
+ "url": "http://tantek.com/updates.atom",
+ "type": "application/atom+xml",
+ "rel": "updates"
+ }]
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/test.json
new file mode 100644
index 0000000..d919418
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/alternate/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "A rel=alternate",
+ "description": "rel=alternate",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/input.html
new file mode 100644
index 0000000..9092a34
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/input.html
@@ -0,0 +1 @@
+cc by 2.5
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/output.json
new file mode 100644
index 0000000..869ca23
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/output.json
@@ -0,0 +1,6 @@
+{
+ "items": [],
+ "rels": {
+ "license": ["http://creativecommons.org/licenses/by/2.5/"]
+ }
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/test.json
new file mode 100644
index 0000000..c6757c2
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/license/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "A rel=license",
+ "description": "rel=license",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/input.html
new file mode 100644
index 0000000..f653674
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/input.html
@@ -0,0 +1 @@
+Copyrights
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/output.json
new file mode 100644
index 0000000..ebbfd65
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/output.json
@@ -0,0 +1,6 @@
+{
+ "items": [],
+ "rels": {
+ "nofollow": ["http://microformats.org/wiki/microformats:copyrights"]
+ }
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/test.json
new file mode 100644
index 0000000..5fcdc2f
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/nofollow/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "A rel=nofollow",
+ "description": "rel=nofollow",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/suite.json
new file mode 100644
index 0000000..7b085f8
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "rel=* and xfn parsing tests",
+ "description": "This page was design to test the parsing of rel=* and xfn. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-all/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-all/input.html
new file mode 100644
index 0000000..39db275
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-all/input.html
@@ -0,0 +1,19 @@
+
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json
new file mode 100644
index 0000000..737a755
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/output.json
@@ -0,0 +1,15 @@
+{
+ "items": [],
+ "rels": {
+ "me": [
+ "http://twitter.com/glennjones",
+ "http://delicious.com/glennjonesnet/",
+ "https://plus.google.com/u/0/105161464208920272734/about",
+ "http://lanyrd.com/people/glennjones/",
+ "http://github.com/glennjones",
+ "http://www.flickr.com/photos/glennjonesnet/",
+ "http://www.linkedin.com/in/glennjones",
+ "http://www.slideshare.net/glennjones/presentations"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json
new file mode 100644
index 0000000..1564ecc
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/rel/xfn-elsewhere/test.json
@@ -0,0 +1,5 @@
+{
+ "name": "A xfn elsewhere list",
+ "description": "xfn",
+ "author": "Glenn Jones"
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/suite.json b/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/suite.json
new file mode 100644
index 0000000..990b669
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/suite.json
@@ -0,0 +1,4 @@
+{
+ "name": "Expanding URLs in e-* properties parsing tests",
+ "description": "This page was design to test the expanding of relative URLs to absolute URLs in the HTML content of e-* propreties. These tests are part of the micorformats 2 test suite."
+}
\ No newline at end of file
diff --git a/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/urlincontent/input.html b/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/urlincontent/input.html
new file mode 100644
index 0000000..9e1f516
--- /dev/null
+++ b/vendor/mf2/mf2/tests/test-suite/test-suite-data/url/urlincontent/input.html
@@ -0,0 +1,13 @@
+
Need to use an OAuth-ed API in a Python webapp? oauth-dropins is for you! http://t.co/DHqkNf0OBX Try the demo: http://t.co/8Cg0GFAdDb via Twitter
+